Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function xmlLoaded(event:Event):void{
- xml = new XML(xmlLoader.data);
- xmlList = xml.children();
- var i:Number = xmlList.length();
- trace(xmlList)
- while(i--){
- addImage(xmlList[i].@job, i);
- total++;
- }
- }// end function
- public function addImage(file:String, i:int):void {
- posX += 700;
- image = new MovieClip;
- with(image){
- x = posX;
- useHandCursor = true;
- mouseChildren = false;
- buttonMode = true;
- }//
- loadImage = new Loader();
- loadImage.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
- //loadImage.load(new URLRequest(xmlList[i].@job, i));
- trace(total++);
- }
- public function onComplete(evt:Event):void{
- //recebeImg.addChild(image);
- }//end function
Add Comment
Please, Sign In to add comment