U-X > unloadMovie

 

unloadMovie

Availability

Flash Player 3.

Usage

unloadMovie[Num](level/"target")

Parameters

level The level (_levelN) of a loaded movie. When you unload a movie from a level, the unloadMovie action in the Actions panel in normal mode switches to unloadMovieNum; in expert mode, you must specify unloadMovieNum or choose it from the Actions toolbox.

target The target path of a movie clip.

Returns

None.

Description

Action; removes a loaded movie or a movie clip from the Flash Player. To unload a movie that was loaded into a level in the Flash Player, use the level parameter. To unload a loaded movie clip, use the target parameter.

Example

The following example unloads the movie clip draggable on the main Timeline, and loads the movie movie.swf into level 4.

on (press) {
    unloadMovie ("_root.draggable");
    loadMovieNum ("movie.swf", 4);
}

The following example unloads the movie loaded into level 4:

on (press) {
    unloadMovieNum (4);
}

See also

loadMovie, loadMovieNum, unloadMovieNum