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()
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...