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

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Returns
- A random integer.
Number
Example
The following use of
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
- The target path of a movie clip instance created with
target:Object
duplicateMovieClip()
MovieClip.attachMovie()
MovieClip.createEmptyMovieClip()
Example
The following example creates a new movie clip called
clip. The second movie clip is called
When a button,
button_mc
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);
};
returns a value of 0, 1, 2, 3, or 4:
random()
or the instance name of a movie clip created with
,
MovieClip.duplicateMovieClip()
.
newClip_mc
, is clicked, the duplicated movie clip is removed from the Stage.
random(5);
, or
and duplicates the movie
myClip_mc
. Images are loaded into both movie clips.
Global Functions
77

Advertisement

Table of Contents
loading

Table of Contents