03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

trace("you clicked the "+this._name+" movie clip.");<br />

};<br />

See also<br />

trackAsMenu (Button.trackAsMenu property)<br />

unloadMovie (MovieClip.unloadMovie method)<br />

public unloadMovie() : Void<br />

Removes the contents of a movie clip instance. The instance properties <strong>and</strong> clip h<strong>and</strong>lers<br />

remain.<br />

To remove the instance, including its properties <strong>and</strong> clip h<strong>and</strong>lers, use<br />

MovieClip.removeMovieClip().<br />

You can extend the methods <strong>and</strong> event h<strong>and</strong>lers of the MovieClip class by creating a subclass.<br />

Example<br />

The following example unloads a movie clip instance called box when a user clicks the box<br />

movie clip:<br />

this.createEmptyMovieClip("box", 1);<br />

with (box) {<br />

lineStyle(1, 0xCCCCCC);<br />

beginFill(0x4827CF);<br />

moveTo(0, 0);<br />

lineTo(80, 0);<br />

lineTo(80, 60);<br />

lineTo(0, 60);<br />

lineTo(0, 0);<br />

endFill();<br />

}<br />

box.onRelease = function() {<br />

box.unloadMovie();<br />

};<br />

See also<br />

removeMovieClip (MovieClip.removeMovieClip method), attachMovie<br />

(MovieClip.attachMovie method), loadMovie (MovieClip.loadMovie method),<br />

unloadMovie function, unloadMovieNum function<br />

474 ActionScript classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!