unloadMovie()

Availability

Flash Player 3.

Usage

unloadMovie[Num](level / "target")

Parameters

target The target path of a movie clip.

Returns

None.

Description

Action; removes a movie clip that was loaded using loadMovie() from the Flash Player. To unload a movie that was loaded using loadMovieNum(), use unloadMovieNum() instead of unloadMovie().

Example

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

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

The following example unloads the movie loaded into level 4:

on (press) {
    unloadMovieNum (4);
}

See also

loadMovie(), loadMovieNum(), unloadMovieNum()