EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 658

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
658 Chapter 12: ActionScript Dictionary
Description
Function; returns a string representation of the specified parameter as follows:
If
expression is a number, the return string is a text representation of the number.
If
expression is a string, the return string is expression.
If
expression is an object, the return value is a string representation of the object generated
by calling the string property for the object, or by calling
Object.toString() if no such
property exists.
If
expression is undefined, the return values are as follows:
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 undefined.
If
expression is a Boolean value, the return string is "true" or "false".
If
expression is a movie clip, the return value is the target path of the movie clip in slash (/)
notation.
Note: Slash notation is not supported by ActionScript 2.0.
See also
Number.toString()
, Object.toString(), String class, " " (string delimiter)
substring
Availability
Flash Player 4. This function has been deprecated in favor of String.substr().
Usage
substring("string", index, count)
Parameters
string
The string from which to extract the new string.
index The number of the first character to extract.
count The number of characters to include in the extracted string, not including the
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()

Table of Contents

Related product manuals