I think this is easy but i can’t figure it out. I am loading a swf movie into my main swf with a player 9 and cant get the sound to stop although the swf movie disapears. Can anyone help, please keep it simple…
my code looks something like this:
var loader:Loader = new Loader()
addChild(loader);
test_btn.addEventListener(MouseEvent.CLICK, Test);
function Test(event:MouseEvent):void {
removeChild(loader);
var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
removeChild(test_btn);
loader.load(newSWFRequest);
loader.x = 100;
loader.y = 100;
addChild(loader);
loader.unload();
}
this.nav_btns.home_btn.addEventListener(MouseEvent.CLICK, btnClick);
function btnClick(event:MouseEvent):void {
loader.unload();
removeChild(loader);
}