User Guide

Table Of Contents
42 Flash Lite Global Functions
Operands
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.
Description
Function; extracts part of a string. This function is one-based, whereas the String class
methods are zero-based.
Example
The following example extracts the first five characters from the string “Hello World”:
origString = "Hello World!";
newString = substring(origString, 0, 5);
trace (newString);// Output: Hello
tellTarget()
Availability
Flash Lite 1.0.
Usage
tellTarget(target) {
statement(s);
}
Operands
target A string that specifies the target path of the timeline to control.
statement(s) The instructions to execute if the condition evaluates to true.
Description
Function; applies the instructions specified in the statement(s) parameter to the timeline
specified in the
target parameter. The tellTarget() function is useful for navigation
controls. Assign
tellTarget() to buttons that stop or start movie clips elsewhere on the
Stage. You can also make movie clips go to a particular frame in that clip. For example, you
might assign
tellTarget() to buttons that stop or start movie clips on the Stage or prompt
movie clips to move to a particular frame.