play()

Availability

Flash Lite 1.0.

Usage

play()

Operands

None.

Description

Function; moves the playhead forward in the timeline.

Example

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!";
}