First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Eddie Carroll | Website: http://www.flashkit.com

Text Fields

There is another type of variable that you should know about before you go too far into your flash career - The Text Field. This is actually a variable believe it or not and should be treated the same as any other variable. The only difference is a text field stores AND displays its value. Let's have a look at one:

text = "Hello";

The Variable "text" is the name of the text field. Let's now look at how to set up and use one.

Firstly you have to create the text field. Do this by clicking on the text tool in the tool bar.

Now draw your text box on the stage. Once you have done this, right-click on the text field and select panels > Text Options from the context menu. This will present the Text Options panel. From here you will be able to change the properties of the text field (more on this in a later tutorial). What we are concerned with here is the variable name. If you remember earlier, the variable used was called "text". Place this name into the space provided labelled "Variable".

Now when ever you give a value to the "text" variable it will be displayed in this text field for all to see.

» Level Basic

Added: 2000-11-06
Rating: 8 Votes: 198
(10 being the highest)
» Author
Eddie was a Content Editor at Flashkit.com and is actually a sentient Gateway Solo 2150xl notebook that suffers from acute lysdexia and caffeine addiction. He is carried on the shoulders of a semi-autonomous human called "Body".
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • 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.