Tuesday, December 1, 2009

MULTIPLE LOADER code

var myLoaderT1:Loader=new Loader ();
var myLoaderU1:Loader=new Loader ();
var myLoaderV1:Loader=new Loader ();

shapes_Sam.addEventListener(MouseEvent.CLICK, swfT1content);
function swfT1content(myeventT1:MouseEvent):void {
var myURLT1:URLRequest=new URLRequest("http://www.pixelcola.net/swf/triangle.swf");
myLoaderT1.load(myURLT1);
addChild(myLoaderT1);
}


shapes_Sam.addEventListener(MouseEvent.CLICK, swfU1content);
function swfU1content(myeventT1:MouseEvent):void {
var myURLU1:URLRequest=new URLRequest("http://www.pixelcola.net/swf/triangle.swf");
myLoaderU1.load(myURLU1);
addChild(myLoaderU1);
}

shapes_Sam.addEventListener(MouseEvent.CLICK, swfV1content);
function swfV1content(myeventT1:MouseEvent):void {
var myURLV1:URLRequest=new URLRequest("http://www.pixelcola.net/swf/triangle.swf");
myLoaderV1.load(myURLV1);
addChild(myLoaderV1);
gotoAndStop(2);
}

myLoaderT1.x=150
myLoaderU1.x=250
myLoaderV1.x=350

No comments:

Post a Comment