User Guide

Table Of Contents
prevFrame() 35
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!";
}
prevFrame()
Availability
Flash Lite 1.0.
Usage
prevFrame()
Operands
None.
Description
Function; sends the playhead to the previous frame and stops it. If the current frame is Frame
1, the playhead does not move.
Example
When the user clicks a button that has the following handler attached to it, the playhead is
sent to the previous frame:
on(release) {
prevFrame();
}
See also
nextFrame()