shift ur creativity

Tutorial 5: Text Essential

Posted by: multimediatutor on: January 28, 2012

:: Bismillahirahmanirrahim ~ In the Name of Allah, The Most Beneficent and The Most Merciful~  ::

Assalamualaikum and Hello!

Today we will go through about TEXT in Flash ^^

In Flash there are three types of text box:

Static
This is the most simple of the text boxes; you can’t change its text on the run.

Dynamic
This text box allows you to change almost anything you could change while editing you flash movie.

Input
The same thing as the dynamic text, but this one accepts user input.
You can change your text to one of these types right after drawing a text box on the stage.
Free Flash Tutorials, Basic Tools, Static and Dynamic Input Text Box

Let’s create a simple movie to demonstrate their differences.
Draw a new Static text box, and write “Name:” on it.
Free Flash Tutorials, Basic Tools, Static and Dynamic Input Text Box

Draw an Input text box next to the previous text. Give an instance name of “iText” and set the “var” to “_root.name”.Free Flash Tutorials, Basic Tools, Static and Dynamic Input Text Box
“_root.name” is going to be the variable that holds the contents of this text box.
If the user types something on the Input box, the variable “_root.name” will have that same text.

Finally draw a dynamic box with these properties:
Free Flash Tutorials, Basic Tools, Static and Dynamic Input Text Box

Open the actions for the first frame and paste:

//this is the variable for the input box var name = “name here” //this is the variable for the dynamic box var text = “” //if the text on the Input box is changed this event is called iText.onChanged = function() { _root.text = “Hello ” + _root.name + “! ” + “How are you today?”; }

This is the result:
Free Flash Tutorials, Basic Tools, Static and Dynamic Input Text Box

note source: www.webzo.org

Have a visit to Tutorial 6 ^^

OKEY ! this is just a briefing about the main component. The full documented notes can be

DOWNLOAD HERE!

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.