Jump to content


XMLLoader Progress

Recommended Posts

I am using the following:



_xmlLoader = new XMLLoader(ASSETs_URL, {name:"assets",







Here is the XML:



<?xml version="1.0" encoding="iso-8859-1"?>


<SWFLoader url="pod1.swf" name="pod1" load="true" />

<SWFLoader url="pod2.swf" name="pod2" load="true" />


<SWFLoader url="pod3.swf" name="pod3" load="true" />

<SWFLoader url="pod4.swf" name="pod4" load="true" />




When onProgress is fired it initially fires for the XML document itself. So it shoots to 100% and then back to 0 for the children.


I tried supplying each SWFLoader in the XML with an estimatedBytes but that didn't solve it either.


Is this expected? I could not find it in the documentation.

Link to comment
Share on other sites

Yes, that is expected behavior because the XMLLoader would have no idea what's in the XML document until it loads so it would be impossible to know what all the estimatedBytes values are inside the XML - see what I mean? The solution would be to simply set an estimatedBytes on your XMLLoader that includes those values too (total size).

Link to comment
Share on other sites

Figured that was the case thank you.


If this XML doc changes often it becomes more of a tedious process to calculate the estimatedBytes for everything is there another way todo this? Auditing perhaps?

Link to comment
Share on other sites

You could simply define a HUGE estimatedBytes on the XMLLoader so that it only appears to creep along progress-wise until it finishes auditing the files inside the XML. You just don't want it to jump forward and then back, right?


Have you read the "tips & tricks" page? http://www.greensock.com/loadermax-tips/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.