Load and unload the external swf file using AS3(for window, IOS and android)
For the external swf file loading, I use this code
-----------------------------------------------------------------------------------
load2.addEventListener(MouseEvent.MOUSE_DOWN, newvid);
function newvid(event:MouseEvent) {
trace("you clicked me");
var loadit = new Loader();
addChild(loadit);
var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
loadit.load(new URLRequest("scene02.swf"), _lc);
}
------------------------------------------------------------------------------------
its working great but I don’t know how to unload the loaded swf files (looking: unload one by one and unload all)
_______________________________________________________________
in AS2 we have
on (release) {
loadMovieNum("scene2.swf", 1);
unloadMovieNum(2);
unloadMovieNum(3);
}
but i need in AS3