Adobe FLASH CS3 PRO User Manual page 415

Hide thumbs Also See for FLASH CS3 PRO:
Table of Contents

Advertisement

• The properties appear in the following order:
,
maxChars
borderColor
,
multiline
selectable
,
,
restrict
length
tabIndex
The Debug > List Objects command 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"
See also
"Control compiler warnings" on page 406
Use the trace statement
A
statement sends specific information to the Output panel. For example, while testing a SWF file, you can
trace()
send results to the Output panel when a button is pressed or a frame plays. The
JavaScript
statement.
alert
When you use the
trace()
appears in the Output panel in the test environment.
Select a frame in the Timeline and add a
1
following ActionScript 2.0 code:
this.createEmptyMovieClip("img_mc", 10);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace(target_mc+" loaded in "+getTimer()+" ms");
};
mclListener.onLoadError = function(target_mc:MovieClip, errorCode:String,
httpStatus:Number) {
trace(">> error downloading image into "+target_mc);
trace(">>\t errorCode="+errorCode+", httpStatus="+httpStatus);
};
var img_mcl:MovieClipLoader = new MovieClipLoader();
img_mcl.addListener(mclListener);
img_mcl.loadClip("http://www.helpexamples.com/flash/images/404.jpg", img_mc);
2
Select Control > Test Movie to test the SWF file.
The Output panel displays the results of the
message:
Output panel
variable
,
,
backgroundColor
textColor
,
,
,
scroll
hscroll
maxscroll
,
.
autoSize
statement in a script, you can use expressions as parameters. The value of an expression
statement. For example, you might select Frame 1 and add the
trace()
statement. For example, the panel might display the following
trace()
,
,
,
,
text
htmlText
html
textWidth
,
,
,
border
background
,
,
maxhscroll
bottomScroll
trace()
FLASH CS3
User Guide
,
,
textHeight
,
,
wordWrap
password
,
,
,
type
embedFonts
statement is similar to the
409

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH CS3 PRO and is the answer not in the manual?

This manual is also suitable for:

Flash cs3 professional

Table of Contents