Global Functions
89
Example
The following code could be applied to a button that, when clicked, would toggle anti-
aliasing on and off:
on(release) {
toggleHighQuality();
}
See also
_quality property
trace function
trace(
expression:Object
)
You can use Flash Debug Player to capture output from the
trace()
function and write that
output to the log file.
Statement; evaluates the expression and displays the result in the Output panel in test mode.
Use this statement to record programming notes or to display messages in the Output panel
while testing a SWF file. Use the
expression
parameter to check whether a condition exists,
or to display values in the Output panel. The
trace()
statement is similar to the
alert
function in JavaScript.
You can use the Omit Trace Actions command in the Publish Settings dialog box to remove
trace()
actions from the exported SWF file.
Availability:
ActionScript 1.0; Flash Lite 1.0
Parameters
expression
:
Object
- An expression to evaluate. When a SWF file is opened in the Flash
authoring tool (using the Test Movie command), the value of the
expression
parameter is
displayed in the Output panel.
Summary of Contents for FLASHLITE2 ACTIONSCRIPT-LANGUAGE
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...