Name

MovieClip.unloadMovie( ) Method — remove a movie or movie clip from the Player

Availability

Method form introduced in Flash 5 (global form supported by Flash 3 and later)

Synopsis

mc.unloadMovie( )

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

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.8.3.1 in Chapter 13

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.