Substring Function; Targetpath Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

substring function

substring(string:String, index:Number, count:Number) : 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 Player 4
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, TextField, or Videoobject.
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 Player 5 - Support for Button, TextField, and Video
objects added in Flash Player 6.
Parameters
targetObject:Object
the target path is being retrieved. This can be a MovieClip, Button, or TextField object.
Returns
- A string containing the target path of the specified object.
String
106
ActionScript language elements
- Reference (for example,
or
) to the object for which
_root
_parent
.
String.substr()

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF