unloadMovieNum()

Availability

Flash Player 3.

Usage

unloadMovieNum(level:Number) : Void

Parameters

level The level (_levelN) of a loaded movie.

Returns

Nothing.

Description

Function; removes a SWF or image that was loaded by means of loadMovieNum() from Flash Player. To unload a SWF or image that was loaded with MovieClip.loadMovie(), use unloadMovie() instead of unloadMovieNum().

Example

The following example loads an image into a SWF file. When you click unload_btn, the loaded content is removed.

loadMovieNum("yourimage.jpg", 1);
unload_btn.onRelease = function() {
   unloadMovieNum(1);
}

See also

MovieClip.loadMovie(), loadMovieNum(), unloadMovie()

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00001869.html