Name

MovieClip.removeMovieClip( ) Method — delete a movie clip from the Flash Player

Availability

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

Synopsis

mc.removeMovieClip( )

Description

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

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

See Also

duplicateMovieClip( ), MovieClip.attachMovie( ), MovieClip.duplicateMovieClip( ); 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.