726
Debugging Applications
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.
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."
CAU
T
IO
N
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.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...