Name

prevFrame( ) Global Function — send a movie’s playhead back one frame and stop it

Availability

Flash 2 and later

Synopsis

prevFrame( )

Description

The prevFrame( ) function moves the playhead of the current timeline back one frame and stops it there. The “current timeline” is the timeline from which the prevFrame( ) function is invoked. The prevFrame( ) function is synonymous with gotoAndStop(_currentFrame - 1);. If invoked on the first frame of a timeline, prevFrame( ) simply stops the playhead on that frame unless another scene precedes the current scene, in which case prevFrame( ) moves the playhead to the last frame of the previous scene.

See Also

gotoAndStop( ), MovieClip.prevFrame( ), nextFrame( ), prevScene( )

Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.