MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 735

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Description
Statement; evaluates the expression and displays the result in the Output panel in test mode.
Use this action to record programming notes or to display messages in the Output panel while
testing a movie. Use the
in the Output panel. The
You can use the Omit Trace Actions command in Publish Settings to remove
from the exported SWF file.
Example
This example is from a game in which a draggable movie clip instance named
released on a specific target. A conditional statement evaluates the
executes different actions depending on where
the end of the script to evaluate the location of the
the Output panel. If
target), the values sent to the Output panel by the
problem in the script.
on(press) {
my_mc.startDrag();
}
on(release) {
if(eval(_droptarget) != target) {
my_mc._x = my_mc_xValue;
my_mc._y = my_mc_yValue;
} else {
var my_mc_xValue = my_mc._x;
var my_mc_yValue = my_mc._y;
target = "_root.pasture";
}
trace("my_mc_xValue = " + my_mc_xValue);
trace("my_mc_xValue = " + my_mc_xValue);
stopDrag();
}
true
Availability
Flash Player 5.
Usage
true
Description
Constant; a unique Boolean value that represents the opposite of
See also
false
parameter to check if a condition exists, or to display values
expression
action is similar to the
trace()
doesn't behave as expected (for example, if it snaps to the wrong
my_mc
function in JavaScript.
alert
_droptarget
is released. The
my_mc
movie clip and to display the result in
my_mc
action will help you determine the
trace()
false
actions
trace()
must be
my_mc
property and
action is used at
trace()
.
true
735

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Table of Contents