I can’t seen to get my swf vidio that i am importing into my main swf to stop. the sound continues after i unload(). Why? My code is:
var loader:Loader = new Loader();
var newSWFRequest:URLRequest = new URLRequest(“video1.swf”);
button.addEventListener(MouseEvent.CLICK, loadVideo);
function loadVideo(event:MouseEvent):void {
loader.load(newSWFRequest);
loader.x = 100;
loader.y = 100;
addChild(loader);
loader.unload();
}
home_btn.addEventListener(MouseEvent.CLICK, killVideo);
function killVideo(event:MouseEvent):void {
loader.unload();
removeChild(loader);
}