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.
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); } }
Related Posts
2 Reviews
Leave a Review
Incoming Searches
action script eq, flash login system download, flash login system php, flash loginsystem, flash tutorial as2 create login script, how to create user login system in flash, jquery examples login system, login as2, login flash as2, login form flash actionscript 2, login system actionscript for flash, login system creation, login system for website through flash, login system style, make log in system website flash, make login page on flash action script 2, on (release keyPress ) { if (user pass == , php login system flash script, Flash login system as2, flash login system, actionscript 2 login form, actionscript login, actionscript style guide, as2 login, as2 login system, create flash login as2, create login in flash, flash action script keypress, flash action script login user, flash as2 keyPress , flash as2 login system, flash as2 login tutorial, flash based login just using actionscript 2, flash get input from user AS2, flash login example, Flash login form using as2 and php, flash login styles, Vejledning til login system

where im type that script in flash frame
@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.