User Guide

Updating Flash Player for testing 165
Color properties appear as hexadecimal numbers (0x00FF00).
The properties appear in the following order: variable, text, htmlText, html, textWidth,
textHeight, maxChars, borderColor, backgroundColor, textColor, border, background,
wordWrap, password, multiline, selectable, scroll, hscroll, maxscroll, maxhscroll,
bottomScroll, type, embedFonts, restrict, length, tabIndex, autoSize.
The List Objects command in the Debug menu (during test mode) lists TextField objects. If an
instance name is specified for a text field, the Output panel shows the full target path including
the instance name in the following form:
Target = "target path"
Using the trace statement
When you use the
trace statement in a script, you can send information to the Output panel.
For example, while testing a SWF file or scene, you can send specific programming notes to the
panel or have specific results appear when a button is pressed or a frame plays. The
trace
statement is similar to the JavaScript
alert statement.
When you use the
trace statement in a script, you can use expressions as parameters. The value
of an expression appears in the Output panel in test mode, as shown by the following code
snippet and image of the Output panel:
onClipEvent (enterFrame) {
if (i == undefined) {
i = 0;
}
trace("onClipEvent enterFrame "+i++);
}
Updating Flash Player for testing
You can download the latest version of Flash Player from the Macromedia Support Center at
www.macromedia.com/support/flash and use it to test your SWF files with the most recent
version of Flash Player.