MovieClip
521
Example
The following example unloads a movie clip instance called
box
when a user clicks the
box
movie clip:
this.createEmptyMovieClip("box", 1);
with (box) {
lineStyle(1, 0xCCCCCC);
beginFill(0x4827CF);
moveTo(0, 0);
lineTo(80, 0);
lineTo(80, 60);
lineTo(0, 60);
lineTo(0, 0);
endFill();
}
box.onRelease = function() {
box.unloadMovie();
};
See also
removeMovieClip (MovieClip.removeMovieClip method)
,
attachMovie
(MovieClip.attachMovie method)
,
loadMovie (MovieClip.loadMovie method)
,
unloadMovie function
,
unloadMovieNum function
_url (MovieClip._url property)
public _url :
String
[read-only]
Retrieves the URL of the SWF, JPEG, GIF, or PNG file from which the movie clip was
downloaded.
Availability:
ActionScript 1.0; Flash Lite 2.0
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...