• Home
  • About
  • Privacy Policy
  • Ask a Solution
  • Contact
Web Style Press, Best Practices from all the Web, Build Better Websites, Web VS Style
  • All In One
  • Tools
  • Javascript
  • Flash

Create Flash Login System using ActionScript

by Hiroshi on October 26th, 2008

If you want some hidden part or admin section in your flash movie then you can just create a login system for Flash using ActionScript.

Simple Flash File Login

Method 1 – Two Users

Take input fields user and pass. Create other two sections of login successful and login failed also. Create a Button and write following actionscript over it.

on (release, keyPress "<Enter>") {
if ((user=="javed" && pass=="letmein") || (user=="admin" && pass=="go")) {
gotoAndStop(10);
} else {
gotoAndStop(5);
}
}

This is simple condition example in flash actionscript. If provided login name and password will match with what are in the actionscript, the script will show success page, otherwise will return after showing login failed message.

Download Files

Method 2 – Single User, Different Actionscript

Create input fields user and pass. Create other two sections of login successful and login failed also. Take a Button and write actionscript over it.

on (release, keyPress "<Enter>") {
if (user eq"user" and pass eq"pass") {
gotoAndStop(2);
} else {
gotoAndStop(3);
}
}

Download Files

Related Posts

  • Create Flash Random 3D Text Animation
  • Flash Mouse Effects
  • Create Flash Slide Shows Using ActionScript – Example Downloads
  • Flash Window or Movie Move – Dragable Content Using ActionScript
  • Counting In Flash – Flash Counter
  • Flash – Go To Frame ActionScript
  • Date and Time In Flash
  • Image Transitions – Effects and Particle Systems In Adobe Flash
  • Flash Tooltips – Tutorial and Example Download
  • Buttons Control In Flash
advertisements

Author

Hiroshi (published 103 Posts on Web Style Press, Best Practices from all the Web, Build Better Websites)


2 Reviews

  1. alfian says:
    June 7, 2009 at 3:53 pm

    where im type that script in flash frame

  2. Hiroshi says:
    June 8, 2009 at 9:58 pm

    @alfian: You have to select button and open actions panel and write script there. Not at frame in timeline but at button. Please download example and see this method in action.

Join / Follow WebStylePress
follow webstylepress at FaceBook Subscribe RSS Feeds Receive updates in Email
Receive Updates in Email

Sections

  • Addons
  • Adobe Flash
    • Actionscript
    • Basics
    • Browser
    • Control
    • Counter
    • Drag
    • email
    • External Load
    • Flash PHP
    • Login Systems
    • Particle Systems
    • Preloaders
    • Random
    • Slide Shows
    • Sound
    • Tips
    • Utilities
  • Adobe Photoshop
  • CMS
  • CSS
  • Design & Color
  • DIV
  • Editors
  • fonts
  • Forms
  • htaccess
  • HTML
  • Javascript
    • Advanced
    • Essentials
    • Medium
    • Tricks
  • JQuery
    • Navigation
    • Plugins & Widgets
    • Rotators
    • Scroll
  • Modrewrite
  • MooTools
    • Multiple Uploader
  • Resources
  • Security
  • SEO
  • standards
  • Tips
  • Tools
  • W3C
  • Web Guidelines
  • Web Hosting
  • Web Tips
  • WordPress
    • Wp Customization
  • XML

Site Search



Copyright © 2011 WebStylePress Web Style Guide for Developers and Webmasters - All Rights Reserved.
RSS - Comments RSS - RSS 0.92 Feed - Atom Feed - RDF/RSS 1.0 Feed - Sitemap