MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 460

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

About the escape character
You can use the backslash escape character (
Escape sequence
\b
\f
\n
\r
\t
\unnnn
\xnn
\'
\"
\\
For more information on string literals, see
"Creating strings" on page
Analyzing and comparing characters in strings
Every character in a string has an index position in the string (an integer). The index position
of the first character is 0. For example, in the string
and the character
is in position 5.
w
Every string has a
length
var companyStr:String = "macromedia";
trace(companyStr.length); // 10
An empty string and a null string both have a length of zero:
var firstStr:String = new String();
trace(firstStr.length); // 0
var secondStr:String = "";
trace(secondStr.length); // 0
460
Working with Text and Strings
), to define other characters in string literals.
\
Description
The backspace character.
The form feed character.
The newline character.
The carriage return.
The tab character.
The Unicode character with the character code specified by the
hexidecimal number
nnnn
character.
The ASCII character with the character code specified by the
hexidecimal number
nn
A single quotation mark.
A double quotation mark.
A single backslash character.
Chapter 5, "About literals," on page 130
458.
property, which is equal to the number of characters in the string:
. For example,
\u263a
.
, the character
yellow
is the smile
and
is in position 0
y

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents