Hello everyone. So i need some quick help, my eyes are tired and i dont know, maybe im overlooking something.
Long story short, im trying to make a button do several things to achieve a smooth transition between external swfs.
one, check if an ext.swf is loaded, and if it is (which by default, there always will be) then play the “outro” frame label. and then when done, if the frame locations is “end” frame label, then play the new swf.
now the problem im having is targetting the loaded swf because im bringing it in like this.
var newSwfRequest:URLRequest = new URLRequest( event.target.name + ".swf");
so there isnt a direct swf name to target.
as for my buttons, im doing them like this:
var loaded:Object;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoaded);
function handleLoaded(e:Event):void {
loaded = event.target.content;
}
load2.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e:MouseEvent):void {
if (loaded) {
loaded.gotoAndPlay("outro");
}
//load new swf
}
i get this error:
1120: Access of undefined property event.
on this line of code:
loaded = event.target.content;
The overall problem im having is targetting the loaded content so i can play certain content within them.
can anyone please help.
any ideas/hints/code etc will be GREATLY appreciated.
thanks in advanced.