![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 86](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553086.webp)
86
ActionScript language elements
substring function
substring("
string
",
index
,
count
) : String
Deprecated
since Flash Player 5. This function was deprecated in favor of
String.substr()
.
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
string
:
String
- The string from which to extract the new string.
index
:
Number
- The number of the first character to extract.
count
:
Number
- The number of characters to include in the extracted string, not including
the index character.
Returns
String
- The extracted substring.
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
_target
property.
Availability:
ActionScript 1.0; Flash Lite 2.0 - Support for Button and TextField objects
added in Flash Player 6.
Parameters
targetObject
:
Object
- Reference (for example,
_root
or
_parent
) to the object for which
the target path is being retrieved. This can be a MovieClip, Button, or TextField object.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...