Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadIcons():void
- {
- var i:int = 0;
- for each (var xml:XML in Assets.ITEMSINDEX[i])
- {
- if (xml.@holdable == 1)
- {
- var ldr:Loader = new Loader();
- var url:String = xml.@icon
- var urlReq:URLRequest = new URLRequest(Main.masterURL + url);
- ldr.load(urlReq);
- ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, iconLoaded)
- function iconLoaded(e:Event):void { Assets.iconsLoaded.push(new Image(Bitmap(ldr.content).bitmapData)); Assets.iconURLs.push(url); }
- }
- i++;
- }
- loadInteractions();
- }
Add Comment
Please, Sign In to add comment