This content has been marked as final. Show 6 replies
I am not sure how Flash pulls data to find the getBytesTotal or getBytesLoaded. I also don’t know what you mean by “return Content-Length”? Does this mean you are unable to retrieve the bytes for the file but able to access it when it’s loaded? Post your AS and XML code if needed.
Does this mean you are unable to retrieve the bytes for the file but able to access it when it’s loaded?
Exactly. I'm getting 0/undefined for the two bytes functions until the XML is fully downloaded, and then i have all the data.
I also don’t know what you mean by “return Content-Length”?
I meant in the server response.
Here's an example on how the response header looks when requesting the page:
Date: Fri, 08 Sep 2006 14:38:45 GMT
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.3
Is there noone here who knows where those byte functions get their data?
I need to know what i have to adjust.
Post your ActionScript code. That should reveal some answers for us. You might want to search the forum to find an answer on how Flash retrieves the bytes of a XML file or start a new thread specifically asking that question.
Thank you for the help myIP.
The problem is now solved.
I found the thread interesting. Just as i thought, the Content-Length was a crucial factor, I added it.
I also had to change Content-Type from text/html to text/plain to make it work, otherwise the encoding chunked was forced and the length overriden.