Hi there -help- I’ve just moved to AS3… and have been using:
unloadMovie("_parent.holder");
on the last frame of my externally loaded SWFs to unload them from the main stage.
But how do I do this in AS3???
I’m using the code below to load (on button click) a 20second video clip onto the main stage. At the end of the clip I want it to unload automatically, or removeChild??? but I can’t find anything anywhere that shows me how exactly… it’s got to be pretty simple right!?
function newvid(event:MouseEvent) {
trace(“you clicked me”);
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest(“cover_movie.swf”));
}
cover_movie.addEventListener(MouseEvent.MOUSE_DOWN, newvid);