Adobe 65018518 - Flash CS4 Professional Using Manual page 360

User guide
Table of Contents

Advertisement

Modify a property value
In the Debugger's Properties tab, double-click the value, and enter a new value.
Enter a string (any value surrounded by quotation marks), a number, or a Boolean value (
enter an expression (for example,
).
2, 3]
Note: To write the value of an expression to the Output panel in the test environment, use the
List a SWF file's objects and variables
To list a SWF file's objects, use the List Objects command, which is useful for finding the correct target path and
instance names. To list a SWF file's variables, use the List Variables command, with which you can find a variable's
name and target path.
Selecting the List Objects or List Variables command clears the contents of the Output panel. If you do not want to lose
this information, select Save to File from the Output Panel menu before selecting the command.
List a SWF file's objects
In the test environment, 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 in the Output panel. (It
does not show all ActionScript data objects.)
1
If your SWF file is not running in the test environment, select Control > Test Movie.
2
Select Debug > List Objects.
A list of all the objects currently on the Stage appears in the Output panel. 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.
List a SWF file's variables in the Output panel
In the test environment, the List Variables command shows a list of all the variables in the SWF file. Global variables
(those declared with the
_global
and each variable has a
_global
In addition, the List Variables command shows getter/setter properties—properties that are created with the
method and start
Object.addProperty()
property is prefixed with
[getter/setter]
property by evaluating the
get
The list does not update automatically as the SWF file plays; you must select the List Variables command each time
you want to send the information to the Output panel.
1
Create a new FLA document. For example, you might call it
2
Add the following ActionScript 2.0 in the Actions panel:
_global.myName = "Buster";
var myCatSays:String = "meow";
var myNum:Number = 313;
var myArray:Array = ["one", "two", "three"];
3
Select Control > Test Movie.
4
Select Debug > List Variables in the test environment.
), or object or array values (for example,
x + 50
identifier) appear at the top of the List Variables output in a Global Variables section,
prefix.
or
methods. In the Output panel, the value of a getter/setter
get
set
. The software determines the value that appears for a getter/setter
function.
Updated 5 March 2009
USING FLASH CS4 PROFESSIONAL
true
{id: "rogue"}
trace()
listvariables.fla
.
355
ActionScript
or
). You cannot
false
or
[1,
statement.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs4 professional

Table of Contents