beautypg.com

Fl.tools, Fl.trace() – Adobe Extending Flash Professional CS4 User Manual

Page 279

background image

257

EXTENDING FLASH CS4 PROFESSIONAL

flash object (fl)

See also

fl.downloadLatestVersion()

,

fl.revertDocumentToLastVersion()

,

fl.saveAVersionOfDocument()

fl.tools

Availability
Flash MX 2004.

Usage

fl.tools

Description
Read-only property; an array of Tools objects (see

Tools object

). This property is used only when creating extensible

tools.

fl.trace()

Availability
Flash MX 2004.

Usage

fl.trace(message)

Parameters

message

A string that appears in the Output panel.

Returns
Nothing.

Description
Method; sends a text string to the Output panel, terminated by a new line, and displays the Output panel if it is not
already visible. This method is identical to

outputPanel.trace()

and works in the same way as the

trace()

statement in ActionScript.

To send a blank line, use

fl.trace(""

) or

fl.trace("\n")

. You can use the latter command inline, making

\n

a part

of the message string.

Example
The following example displays several lines of text in the Output panel: