First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Vlad Craita | Website: http://www.coolsoft.home.ro

With the Property window open type 'username' where it says Var(variable) and select 'Single Line' from the pop-up menu. Do the same for the other text but instead of 'username' type 'password' and select 'Password' from the pop-up menu. By selecting 'Password' the user will see '*' instead of letters.

Near the username text box write 'username' and near the 'password' box write 'password' so you'll know which is which, or you could write in the boxes 'Username'(in 'username') and 'Password'(in 'password' box).

Step 3: Making a text box for the response

Now we'll need to make another text box with no text inside it. Make the width '395' and the height '34'. In the variable(Var:) field type 'mess'(abbreviation from message). The suited property for this text showld be 'Dynamic Text'. This way the user can't modify the response.

Step 4: Adding a button

Draw a rectangle(R)- no stroke. Create a text over the button and write 'Submit' or 'Sign In'. Select the text and the rectangle (hold down 'Shift' and click once on the rectangle and once on the text) and press 'F8' or go to InsertConvert to simbol and click 'Button'. Click 'Ok'.

Step 5: Adding the actionscript

Click on the button you've created. Go to WindowActions(F8). Double click on 'on'(Esc+on). Select besides the 'Release' 'KeyPress' and press 'Enter'. This way the button will execute the action if you press 'Enter' on the keyboard.

Insert an 'evaluate' action(Esc+ev). Type in mess="Sigh in please!".

Insert an 'if' action(Esc+if) and type username=="flashkit" where "flashkit" is the username you'd like to use.

Note: you have to use double '='!!!
» Level Intermediate

Added: 2002-09-21
Rating: 7.88 Votes: 176
(10 being the highest)
» Author
I'm a 17 year old boy who has spent the last 2 years animating in Flash. I live in Romania, i design web pages and i love to surf on the internet.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.