stop( ) Global Function

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By 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( )



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net