jeudi 24 décembre 2015

that message: Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed

my code is perfect but i have that message error (Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed). what is the answer ???

var Xposition:Number=0;
var Yposition:Number=95;
var swf:MovieClip;
var loader:Loader=new Loader();


///// load the home page by default /////
var defaultSWF:URLRequest=new URLRequest("home.swf");
loader.load(defaultSWF);
loader.x= Xposition;
loader.y= Yposition;
addChild(loader);

//// button general function ////
function btnClick(event:MouseEvent):void{
removeChild(loader);
var newSWF:URLRequest=new URLRequest(event.target.name+"swf");
loader.load(newSWF);
loader.x= Xposition;
loader.y= Yposition;
addChild(loader);
}

/////// each btn listener //////
home.addEventListener(MouseEvent.CLICK,btnClick);
aboutus.addEventListener(MouseEvent.CLICK,btnClick);
getinvolved.addEventListener(MouseEvent.CLICK,btnClick);
contact.addEventListener(MouseEvent.CLICK,btnClick);

Aucun commentaire:

Enregistrer un commentaire