EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Removemovieclip Function

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Global Functions 77
Returns
Number - A random integer.
Example
The following use of
random() returns a value of 0, 1, 2, 3, or 4: random(5);
See also
random (Math.random method)
removeMovieClip function
removeMovieClip(target:Object)
Deletes the specified movie clip.
Availability: ActionScript 1.0; Flash Lite 1.0
Parameters
target:Object - The target path of a movie clip instance created with
duplicateMovieClip() or the instance name of a movie clip created with
MovieClip.attachMovie(), MovieClip.duplicateMovieClip(), or
MovieClip.createEmptyMovieClip().
Example
The following example creates a new movie clip called
myClip_mc and duplicates the movie
clip. The second movie clip is called
newClip_mc. Images are loaded into both movie clips.
When a button,
button_mc, is clicked, the duplicated movie clip is removed from the Stage.
this.createEmptyMovieClip("myClip_mc", this.getNextHighestDepth());
myClip_mc.loadMovie("http://www.helpexamples.com/flash/images/image1.jpg");
duplicateMovieClip(this.myClip_mc, "newClip_mc",
this.getNextHighestDepth());
newClip_mc.loadMovie("http://www.helpexamples.com/flash/images/
image1.jpg");
newClip_mc._x = 200;
this.button_mc.onRelease = function() {
removeMovieClip(this._parent.newClip_mc);
};

Table of Contents

Related product manuals