Jump to content
Search Community

Garthd

Members
  • Posts

    3
  • Joined

  • Last visited

Garthd's Achievements

0

Reputation

  1. Hi, yes i actually have a preloader.swf which loads the main.swf. the code belongs to the main swf and i want to achieve that the background and xml (and all its content) is loaded before my movie continues. i hope this makes it understandable...sry
  2. Hi, ok, the problem is solved. there is no problem with the xml-loader but still it was something which was affacted by the xml getting more childs to load. i had a second loader (actually first) which is doing stuff onComplete and everything worked fine as long the xml was loaded before this one. but since the xml got longer it took a while to load and the first loader started to produce some errors. still i dont understand why the XML loader isnt added to the root.loader. i use this code: LoaderMax.activate([xmlLoader,ImageLoader]); _ldrQueue = new LoaderMax({name:"mainQueue", requireWithRoot:this.root, autoLoad:true, onProgress:updatePreloader, onComplete:onLoadedBg, onError:ioErrorHandler}); _ldrQueue.append( new SWFLoader("bg_home.swf", {name:"home", estimatedBytes:300000, container:mc_bg_container, autoPlay:true, autoDispose:true}) ); _xmlLdr = new XMLLoader("loadData.xml", {name:"xmlDoc", requireWithRoot:this.root, onComplete:parseXML, onError:ioErrorHandler}); _xmlLdr.load(); thx in advance
  3. Hi, im trying to get used to this awesome loader tool and had my problems in the beginning which i was able to solve alone. But now im stuck and have no clue how to debug and solve this problem. i have an xml with imageloader childs to load some images automaticaly. the xml looks something like this: <?xml version="1.0" encoding="utf-8"?> . . . now im loading this in my .as with: _xmlLdr = new XMLLoader("loadData.xml", {name:"xmlDoc", requireWithRoot:this.root, onComplete:parseXML, onError:ioErrorHandler}); _xmlLdr.load(); everything worked as long i only had like 5 items in my xml but now the file got bigger, there are more images to load and since then it gives me errors because after the xml-completehandler i'll try to use the "loaded" images. but they are not all loaded. so i can narrow down the problem. i know its a timing problem. i know im trying to work with not loaded images. but i dont know how to check if they are loaded or not. i thought the xml-completehandler will be called once all the childs are loaded and not once the xml itself is loaded. can someone help me? yeah, my english is bad but i still hope that i could explain the problem.
×
×
  • Create New...