Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Global Functions > play() | |||
Flash Lite 1.0.
play()
None.
Function; moves the playhead forward in the timeline.
The following example uses an if statement to check the value of a name that the user enters. If the user enters Steve, the play() function is called, and the playhead moves forward in the timeline. If the user enters anything other than Steve, the SWF file does not play, and a text field with the variable name alert appears.
stop();
if (name == "Steve") {
play();
} else {
alert="You are not Steve!";
}
|
|
|
|