User Guide
prevFrame() 689
prevFrame()
Availability
Flash 2.
Usage
prevFrame() : Void
Parameters
None.
Returns
Nothing.
Description
Function; sends the playhead to the previous frame. If the current frame is Frame 1, the playhead
does not move.
Example
When the user clicks a button called myBtn_btn and the following ActionScript is placed on a
frame in the Timeline for that button, the playhead is sent to the previous frame:
stop();
this.myBtn_btn.onRelease = function(){
prevFrame();
};
See also
MovieClip.prevFrame(), nextFrame()
CHAPTER 2
ActionScript Language Reference