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

Chapter 12. Managing Content and Trouble... > Listing Variables and Objects in the...

Listing Variables and Objects in the Output Window

While the Movie Explorer represents many of a movie's graphic elements and ActionScript, it doesn't display variables or object target paths. For this you use the Output window. Often, while your movie is playing, you will want to know the values of your variables and the target paths of movie clips to determine whether Flash is manipulating the information correctly. This is especially important when your movie is very complicated, perhaps involving many parameters passing between functions or having dynamically allocated variables. For example, say you want to initialize and populate an array object in the first frame of the Timeline. After assigning the ActionScript to the frame that does the job, you can test your movie, but you won't really know if Flash has correctly populated the array because there's nothing visual on the Stage. In order to see if the array is indeed filled up with the correct values, you can list the variables in the Output window in testing mode. The List Variables command displays all the variables in a movie with their scopes and values.

In the following task, you first create a simple array object, and then assign values to it using a looping statement. In testing mode, you list the movie's variables in the Output window to see the array's final values.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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