Hi Folks,
I am a newbie to AS 3.0, It would be great if you could help me out with it. I am making a offline Flash
Presentation with interactivity.To showcase the banners & websites we have worked on.
Basically The main Swf calls on other individual swf (flash websites) that needs to be displayed.
However i am facing a problem with a situation where:
The situation that works is:
It works fine if the main swf callsupon another standalone swf(usually a banner).
The situation that does NOT work is:
The main swf calls upon an external swf and this external swf inturn callsupon a couple of other swfs(its a
flash website) for its own functioning. so basically if the external swf has dependent swfs its loading
incompletly. just the web interface is displayed and does not do what it would otherwise do on its own.
I am using the following code:
var Xpos:Number=375;
var Ypos:Number=280;
var swf:MovieClip;
var loader:Loader=new Loader();
var defaultSWF:URLRequest=new URLRequest(“swfs/cannon.swf”);
loader.load(defaultSWF);
loader.x=Xpos;
loader.y=Ypos;
addChild(loader);
///////////////////////////
uniback_btn.addEventListener(MouseEvent.CLICK,btnClick);
function btnClick(event:MouseEvent):void
{
removeChild(loader);
}
stop();