• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 7. Programming with ActionScript > Using Variables with Dynamic Text Box...

Using Variables with Dynamic Text Boxes

A variable is a placeholder for information. Think of it as a container. The container (variable) itself is always the same, but the contents (value) can change. You can change the contents of a variable to record information about what a user has done, record values that change as the movie plays, or evaluate whether a condition is true or false. You can use variables to make updating your movie easy; every place where the variable is used, Flash fills in its value.

One place to which you can pass the value of a variable is a dynamic text box, which displays dynamically updating text such as scores and stock quotes. To pass the value of a variable to a dynamic text box, you give the variable and the dynamic text box the same name.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint