Jump to content


  • Posts

  • Joined

  • Last visited


0 Newbie
  1. I have a pretty common scenario, but can't quite get the loading progress sorted out- I have a main swf, containing a swfLoader which loads in another swf: menuLoader = new SWFLoader("menu.swf", {container:this.menuHolder,estimatedBytes:10000000}); in the child swf I have an xmlLoader which loads xml file containg a videoLoader, several MP3loaders and some imageLoaders, the content of which totals around 10Mb: xmlLoader= new XMLLoader(baseURL+"xml/menu_config.xml", {name:"xmlData",onComplete:completeHandler,requireWithRoot:this.root}); Everything loads perfectly, but I cannot get a smooth progress on the preloader? It goes quickly to 10% or so, then jumps to 95% and slowly progresses up to 100? I've tried every option I can think of,but its pretty clear I don't understand how its supposed to work. So...some basic questions, 1. do I declare estimatedBytes in the parent swfLoader, or the child xmlLoader, or in the xml file itself for each imageLoader,videoLoader etc, or some combination of those? 2. what should this.root refer to in requireWithRoot? I would think it would be the parent loader but when I trace out this.root it always refers to the child class? 3. is there something else, probably very basic, I'm missing? cheers for any help