There are some characters that cannot be entered directly
such as ', ", \ etc. To enter these characters in ActionScript we
are using the escape characters. There is also a mechanism for directly
entering the value of a character in octal or hexadecimal. To enter a character
in Octal notation use the backslash followed by three digit octal number. For
example to enter 'a' in Octal use '\141'. Similarly for entering the character
in hexadecimal format user backslash followed by a 'x' and the hexadecimal
number. For example to enter 'a' in hexadecimal use '\x0061'. The following
table shows the available escape characters in ActionScript.
Escape Sequence
|
Character
|
\b
|
Backspace
|
\\
|
Backslash
|
\"
|
Double Quotation mark
|
\'
|
Single Quotation mark
|
\f
|
Form feed
|
\n
|
Line feed
|
\r
|
Carriage Return
|
\t
|
Tab
|
\000-\377
|
Character in Octal
|
No comments:
Post a Comment