MovieClip.unloadMovie( ) Method

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
MovieClip.unloadMovie( ) Method Flash 5

remove a movie or movie clip from the Player
mc.unloadMovie()

Description

The MovieClip.unloadMovie( ) method is an alternative to the global unloadMovie( ) function. When invoked as a MovieClip method, unloadMovie( ) does not take a target parameter; it always unloads mc. The MovieClip method syntax is less prone to user error than its global function counterpart because no target parameter is required.

For usage instructions, see the global unloadMovie( ) function.

Example

// Removes a loaded document from level 1 _level1.unloadMovie();

See Also

MovieClip.loadMovie( ), unloadMovie( ); Section 13.7



    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