Jump to content
Search Community

brendynz

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by brendynz

  1. Thanks for the help on this I've tried a whole bunch of combinations with estimatedBytes on both the LoaderMax instance, and the XMLLoader instance, as well as using the XMLLoader by itself, and Im still getting a jump unfortunately. If I change the estimate btyes to a higher amount on the XML, it just seems that the first loader bar takes twice as long before it gets to the second one.
  2. Im hoping this is just a small param I am missing. Im loading in an XML file, which has the following line in it to load a swf: Everything is working fine, except the loading bar flashes 100% full, and then reverts back to 0% to load the swf. Obvisouly it's better if it takes both the XML filesize and SWF filesize into account. I've tried to compensate for that my adding an onComplete into the XMLLoader, but that doesn't seem to fire until both the SWF and XML are loaded. Any thoughts on a better way to do this so the bar doesn't flash? protected function setLoaders():void { _isXMLLoaded = false; _loaderMax = new LoaderMax( { name:"mainQueue", onProgress:loaderProgressHandler, requireWithRoot:true, noCache:true, onComplete:loaderCompleteHandler, onError:loaderErrorHandler, onIOError:loaderErrorHandler, onFail:loaderErrorHandler } ); _loaderMax.append( new XMLLoader("myXML.xml", {name:"lib_xml", estimatedBytes:3000, onError:loaderErrorHandler, onIOError:loaderErrorHandler, onComplete:initLoader}) ); LoaderMax.prioritize("lib_xml"); _loaderMax.load(); } private function initLoader( $evt:LoaderEvent ):void { _isXMLLoaded = true; } private function loaderProgressHandler( $evt:LoaderEvent ):void { if(_isXMLLoaded) { showLoadProgress( $evt.target.progress ); } else { trace( "LOADING XML:", $evt.target.progress ); }
  3. I can't seem to get the alternateURL working from within a SWFLoader XML node: Should this line work?
  4. I have a need to display a param always to two decimal places. In other words, tweening something to 20, should actually be to 20.00. Tweenmax always seems to cut off the decimal if it is zero. Does anyone know if there is a way to keep the decimals no matter what? Thanks
×
×
  • Create New...