Hello I’m newbie with as 3.0 i made some test to create a simple navigation between A and B swf files; when the B file load the A file remains, How can i remove or unload the A file?
this is the script:
stop();
Square.addEventListener(MouseEvent.CLICK, clickB);
function clickB(event:MouseEvent) {
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest(“B.swf”);
myLoader.load(url);
}
Sample in the file
Thanks for the help…