Fl.version, Fl.xmlui – Adobe Extending Flash Professional CS5 User Manual

Page 283

Advertising
background image

261

EXTENDING FLASH PROFESSIONAL

flash object (fl)

Last updated 5/2/2011

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:

fl.outputPanel.clear();

fl.trace("Hello World!!!");

var myPet = "cat";

fl.trace("\nI have a " + myPet);

fl.trace("");

fl.trace("I love my " + myPet);

fl.trace("Do you have a " + myPet +"?");

fl.version

Availability
Flash MX 2004.

Usage

fl.version

Description
Read-only property; the long string version of the Flash authoring tool, including platform.

Example
The following example displays the version of the Flash authoring tool in the Output panel:

alert(fl.version); // For example, WIN 10,0,0,540

fl.xmlui

Availability
Flash MX 2004.

Usage

fl.xmlui

Advertising
This manual is related to the following products: