substring function
substring("string", index, count) : String
Deprecated since Flash Player 5. This function was deprecated in favor of
Extracts part of a string. This function is one-based, whereas the String object methods are
zero-based.
Availability: ActionScript 1.0; Flash Lite 1.0
Parameters
- The string from which to extract the new string.
string:String
- The number of the first character to extract.
index:Number
- The number of characters to include in the extracted string, not including
count:Number
the index character.
Returns
- The extracted substring.
String
See also
substr (String.substr method)
targetPath function
targetpath(targetObject:Object) : String
Returns a string containing the target path of a MovieClip, Button, or TextFieldobject. The
target path is returned in dot (.) notation. To retrieve the target path in slash (/) notation, use
the
property.
_target
Availability: ActionScript 1.0; Flash Lite 2.0 - Support for Button and TextField objects
added in Flash Player 6.
Parameters
targetObject:Object
the target path is being retrieved. This can be a MovieClip, Button, or TextField object.
86
ActionScript language elements
- Reference (for example,
or
) to the object for which
_root
_parent
.
String.substr()
Need help?
Do you have a question about the FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers