Tuesday, March 13, 2012

DO NOT USE ON PUBLIC COMPUTERS

/*The BUTTON INSTANCE below loads an external movie clip
AND moves the main timeline to frame 5 simultaneously
*/

var myLoader1:Loader=new Loader ();
timeline_Sam.addEventListener(MouseEvent.CLICK, swf1content);
function swf1content(myevent1:MouseEvent):void {
var myURL1:URLRequest=new URLRequest("circlesZ.swf");
myLoader1.load(myURL1);
addChild(myLoader1);
gotoAndStop(5);
}

//The code below determines the position of the external movie clip load

myLoader1.x = 150
myLoader1.y = 150

No comments:

Post a Comment