removeMovieClip()
Availability
Flash Player 4.
Usage
removeMovieClip(target)
Parameters
The target path of a movie clip instance created with
target
instance name of a movie clip created with MovieClip.attachMovie(),
MovieClip.duplicateMovieClip(), or MovieClip.createEmptyMovieClip().
Returns
None.
Description
Function; deletes the specified movie clip.
Example
The following example creates a new movie clip called
The second movie clip is called
button,
button_mc
this.createEmptyMovieClip("myClip_mc", this.getNextHighestDepth());
myClip_mc.loadMovie("http://www.macromedia.com/devnet/mx/blueprint/articles/
server_side/jeremy_gray.jpg");
duplicateMovieClip(this.myClip_mc, "newClip_mc", this.getNextHighestDepth());
newClip_mc.loadMovie("http://www.macromedia.com/devnet/mx/blueprint/articles/
performance/spotlight_speterson.jpg");
newClip_mc._x = 200;
this.button_mc.onRelease = function() {
removeMovieClip(this._parent.newClip_mc);
};
See also
duplicateMovieClip(), MovieClip.duplicateMovieClip(), MovieClip.attachMovie(),
MovieClip.removeMovieClip()
ActionScript Language Reference
newClip_mc
, is clicked, the duplicated movie clip is removed from the Stage.
duplicateMovieClip()
myClip_mc
. Images are loaded into both movie clips. When a
CHAPTER 2
and duplicates the movie clip.
removeMovieClip()
or the
711
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers