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

Chapter 15. Introducing Complex Interactivity > Using Expressions and Variables

Using Expressions and Variables

Suppose that you want to create a lucky-number generator, and you define the lucky number as a person's age plus today's date. You could make up a formula to figure out this number: age + day + month + year. That formula is called an expression. Each word in the formula is a variable, a container for tem-porarily holding a series of numbers or letters.

Variables can be concrete—text fields in which users type information or where information generated by ActionScripts gets output. Variables can also be abstract—containers that live only in Macromedia Flash's electronic brain.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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