MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 336

Extending flash
Table of Contents

Advertisement

outputPanel.trace()
Availability
Flash MX 2004.
Usage
outputPanel.trace(message)
Parameters
The
parameter is a string that contains the text to add to the Output panel.
message
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
, and works in
fl.trace()
the same way as the
statement in ActionScript.
trace()
To send a blank line, use
) or
. You can
outputPanel.trace(""
outputPanel.trace("\n")
use the latter command inline, making
a part of the
string.
\n
message
Example
The following example displays several lines of text in the Output panel:
fl.outputPanel.clear();
fl.outputPanel.trace("Hello World!!!");
var myPet = "cat";
fl.outputPanel.trace("\nI have a " + myPet);
fl.outputPanel.trace("");
fl.outputPanel.trace("I love my " + myPet);
fl.outputPanel.trace("Do you have a " + myPet +"?");
336
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents