MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 35

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

Advertisement

To include a quotation mark in a string, precede it with a backslash character (\). This is called
escaping a character. There are other characters that cannot be represented in ActionScript except
by special escape sequences. The following table provides all the ActionScript escape characters:
Escape sequence
\b
\f
\n
\r
\t
\"
\'
\\
\000 - \377
\x00 - \xFF
\u0000 - \uFFFF
Number
The number data type is a double-precision floating-point number. You can manipulate numbers
using the arithmetic operators addition (
modulo (
), increment (
%
and Number classes to manipulate numbers. The following example uses the
root) method to return the square root of the number 100:
Math.sqrt(100);
For more information, see
Boolean
A Boolean value is one that is either
and
to 1 and 0 when appropriate. Boolean values are most often used with logical
false
operators in ActionScript statements that make comparisons to control the flow of a script. For
example, in the following script, the SWF file plays if the variable
onClipEvent(enterFrame) {
if (userName == true && password == true){
play();
}
}
See
"Using built-in functions" on page 51
Character
Backspace character (ASCII 8)
Form-feed character (ASCII 12)
Line-feed character (ASCII 10)
Carriage return character (ASCII 13)
Tab character (ASCII 9)
Double quotation mark
Single quotation mark
Backslash
A byte specified in octal
A byte specified in hexadecimal
A 16-bit Unicode character specified in hexadecimal
), subtraction (
+
), and decrement (
++
--
"Numeric operators" on page
or
true
false
and
), multiplication (
-
). You can also use methods of the built-in Math
45.
. ActionScript also converts the values
password
"Logical operators" on page
), division (
),
*
/
(square
sqrt()
true
is
:
true
47.
About data types
35

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