• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Unloading

Unloading a movie removes all of its contents from the movie clip that contains it, but leaves the empty movie clip intact.

// create an empty clip and load a movie into it
this.createEmptyMovieClip("wormHolder_mc", 1);
wormHolder_mc._x = 200;
this.wormHolder_mc.loadMovie("gradient.jpg");

// unloading
unload_btn.onRelease = function ()
{
    _root.wormHolder_mc.unloadMovie();
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint