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

Chapter 15. Introducing Complex Interactivity > Creating an Invisible Variable

Creating an Invisible Variable

In the preceding exercise, you set up variables when you created special types of text boxes. These text boxes make the contents of the variable visible, both to you (the Flash author) and the viewers of your movie. You might think of a variable that has no associated text box as being an invisible variable, because neither you nor your target audience will ever see the contents of the variable directly (although as the author, you will see the variable within the script). To create a variable that has no representation on the Stage—a process called declaring a variable— you can use the set variable action.

Instead of directing your script to put the result of your mathematical calculations in the Lucky Number text box, you can put the results in an invisible variable where you might perform several calculations before outputting the result.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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