MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 797

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

Advertisement

In Flash 4, the escape sequence
and later, to comply with the ECMA-262 standard,
10). An
sequence in Flash 4 FLA files is automatically converted to
\n
The
operator in Flash 4 was used for string addition. In Flash 5 and later,
&
AND operator. The string addition operator is now called
are automatically converted to
Many functions in Flash 4 did not require closing parentheses, for example,
,
Variable
Stop
now require closing parentheses. These parentheses are automatically added during
the conversion.
In Flash 5 and later, when the
exist, it returns the value
ActionScript after Flash 4 (in Flash 4,
problem when converting Flash 4 files by introducing
comparisons. In the following example,
the comparison will succeed:
getProperty("clip", _width) == 0
Number(getProperty("clip", _width)) == Number(0)
Note: If you used any Flash 5 or later keywords as variable names in your Flash 4 ActionScript, the
syntax returns an error when you compile it in Flash MX 2004. To solve this problem, rename your
variables in all locations. See
Using slash syntax
Slash syntax was used in Flash 3 and 4 to indicate the target path of a movie clip or variable. In
slash syntax, slashes are used instead of dots; also, to indicate a variable, you precede it
with a colon:
myMovieClip/childMovieClip:myVariable
To write the same target path in dot syntax (see
Flash Player 5 and later, you would use the following code:
myMovieClip.childMovieClip.myVariable
Slash syntax was most commonly used with the
recommended. The
with dot syntax. For more information, see
Dictionary," on page
generated a carriage return character (ASCII 13). In Flash 5
\n
operators.
add
, and
. To create consistent syntax, the
Play
getProperty
, not 0. The statement
undefined
"Keywords" on page 33
action is now preferred over
with
205.
Using Flash MX 2004 to create content for Flash Player 4
generates a line-feed character (ASCII
\n
add
getTimer
function is executed on a movie clip that doesn't
undefined == 0
). In Flash 5 and later, solve this
undefined == 1
Number()
forces
Number()
undefined
and
"Naming a variable" on page
"Dot syntax" on page
action, whose use is also no longer
tellTarget
tellTarget
and
tellTarget
with
.
\r
is the bitwise
&
. Any
operators in Flash 4 files
&
Get Timer
function and all actions
is
false
functions in equality
to be converted to 0 so
41.
30), which is supported by
because it is more compatible
in
Chapter 12, "ActionScript
,
Set
in
797

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?

Questions and answers

Table of Contents