First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Dan H.

The Steps

1. Create an input text box (do this by creating a regular textbox, but in properties, change the drop-down menu in the top-left to read "Input Text"). 2. In propeties, type code where it says "Var" (near the bottom-right). 3. Make a "Submit" or "OK" button (you can create a rectangle, select it, press F8 and select "Button"). 4. Give the button you just made the following actionscript: on (release) { if (_root.code == "CodeForLevel1") { gotoAndStop(FrameForLevel1) } if (_root.code == "CodeForLevel2") { gotoAndStop(WHATEVER FRAME) } if (_root.code == "CodeForLevel3") { gotoAndStop(WHATEVER FRAME) } } 5. Now look at the code and you are going to have to make some changes. Replace the CodeForLevel1 with whatever you want the code for Level 1 to be, the CodeForLevel2 with whatever you want the code for Level 2 to be, and so on. Then replace the FrameForLevel1 with whatever frame level 1 is on, and so on. Note that you can also add more codes for more levels by just copying this: if (_root.code == "") { gotoAndStop() } and pasting it right under the last one, with of course filling the blanks in.
Note: Remember to keep the quotation marks ("s). Just change the phrase/word inside them.
6. TEST IT! :) Download the .fla file or e-mail me for any problems. You can check the next page if you want to know how the actionscript actually works.

If you want to see the end result but are too lazy to download it, it's here.

» Level Intermediate

Added: 2006-03-28
Rating: 6 Votes: 5
(10 being the highest)
» Author
Umm...12 yrs old...
» 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.