Accessibility
 
Home > Products > Flash > Support > ActionScript Dictionary
Flash Icon Macromedia Flash Support Center - ActionScript dictionary
play

Availability
Flash 2.

Usage

 play() 

Parameters
None.

Returns
Nothing.

Description
Action; moves the playhead forward in the Timeline.

Example
The following code uses an if statement to check the value of a name the user enters. If the user enters Steve , the play action is called and the playhead moves forward in the Timeline. If the user enters anything other than Steve , the movie does not play and a text field with the variable name alert is displayed.

stop();
if (name == "Steve") {
	play();
} else {
	alert="You are not Steve!";
}

To Table of Contents Back to Previous document Forward to next document