For more information on the Output panel, see the following topics:
"Listing a SWF file's objects" on page 726
"Listing a SWF file's variables" on page 727
"About displaying text field properties for debugging" on page 728
"Using the trace statement" on page 728
"Updating Flash Player for testing" on page 729
Listing a SWF file's objects
In test mode, the List Objects command shows the level, frame, object type (shape, movie
clip, or button), target paths, and instance names of movie clips, buttons, and text fields in a
hierarchical list. This option is especially useful for finding the correct target path and
instance name. Unlike the Debugger, the list does not update automatically as the SWF file
plays; you must select the List Objects command each time you want to send the information
to the Output panel.
Selecting the List Objects command clears any information that currently appears in the
Output panel. If you do not want to lose information in the Output panel, select Save to
File from the Output panel Options pop-up menu or copy and paste the information to
another location before selecting the List Objects command.
The List Objects command does not list all ActionScript data objects. In this context, an
object is considered to be a shape or symbol on the Stage.
To display a list of objects in a SWF file:
1.
If your SWF file is not running in test mode, select Control > Test Movie.
2.
Select Debug > List Objects.
A list of all the objects currently on the Stage appears in the Output panel, as shown in the
following example:
Level #0: Frame=1 Label="Scene_1"
Button: Target="_level0.myButton"
Shape:
Movie Clip: Frame=1 Target="_level0.myMovieClip"
Shape:
Edit Text: Target="_level0.myTextField" Text="This is sample text."
726
Debugging Applications
Need help?
Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?