Description
Function; returns a string representation of the specified parameter as follows:
If
is a number, the return string is a text representation of the number.
expression
If
is a string, the return string is
expression
If
is an object, the return value is a string representation of the object generated
expression
by calling the string property for the object, or by calling
property exists.
If
is
expression
•
In files published for Flash Player 6 or earlier, the result is an empty string (
•
In files published for Flash Player 7 or later, the result is
If
is a Boolean value, the return string is
expression
If
is a movie clip, the return value is the target path of the movie clip in slash (/)
expression
notation.
Note: Slash notation is not supported by ActionScript 2.0.
See also
Number.toString()
substring
Availability
Flash Player 4. This function has been deprecated in favor of
Usage
substring("string", index, count)
Parameters
The string from which to extract the new string.
string
The number of the first character to extract.
index
The number of characters to include in the extracted string, not including the
count
index character.
Returns
Nothing.
Description
String function; extracts part of a string. This function is one-based, whereas the String object
methods are zero-based.
See also
String.substr()
658
Chapter 12: ActionScript Dictionary
, the return values are as follows:
undefined
,
Object.toString()
.
expression
Object.toString()
undefined
or
"true"
"false"
,
String
class,
" " (string delimiter)
String.substr()
if no such
).
""
.
.
.
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers