![MACROMEDIA FLASH 8-FLASH Reference Download Page 44](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_reference_3347197044.webp)
44
Flash Lite Global Functions
trace()
Availability
Flash Lite 1.0.
Usage
trace(
expression
)
Operands
expression
An expression to evaluate. When a SWF file opens in the Flash authoring
tool (by means of the Test Movie command), the value of the
expression
parameter appears
in the Output panel.
Description
Function; evaluates the expression and shows the result in the Output panel in test mode.
Use this function to record programming notes or to display messages in the Output panel
while testing a SWF file. Use the
expression
parameter to check if a condition exists, or to
display values in the Output panel. The
trace()
function is similar to the
alert
function
in JavaScript.
You can use the Omit Trace Actions command in publish settings to remove
trace()
functions from the exported SWF file.
Example
The following example uses the
trace()
function to observe the behavior of a
while
loop:
i = 0;
while (i++ < 5){
trace("this is execution " add i);
}
unloadMovie()
Availability
Flash Lite 1.0.
Usage
unloadMovie(
target
)
Operands
target
The target path of a movie clip.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...