ActionScript for Flash MX: The Definitive Guide, Second Edition

ActionScript for Flash MX: The Definitive Guide, 2nd EditionBy Colin Moock
Chapter 18.  ActionScript Language Reference
stop( ) Global Function Flash 2

pause the movie's playhead at the current frame

stop()

Description

The stop( ) function is a simple but fundamental function that halts the playback of a movie or movie clip. It is the global counterpart of the MovieClip.stop( ) method and the arch-enemy of play( ). Commonly, it is used to wait for the user to choose from a graphical menu. Even while a movie is stopped, the Player continues to play sounds, react to user actions, and process events. Flash also continues to render changes to the screen in other movie clips or buttons, even if the playhead of the current movie clip is stopped. Similarly, visual changes performed in event handlers or via setInterval( ) are rendered even when the playhead is stopped. The stop( ) function merely prevents the playhead from advancing in the current timeline.

See Also

MovieClip.stop( ), play( )

    Категории