URLLoader Event.COMPLETE dispatched when data not completely loaded?
I am experiencing an interesting problem...I have a URLLoader instance with a Event.COMPLETED listener. I can reproduce behavior such that when the listener is called, there is a discrepancy in the amount of loaded data.
Here's a snippet from the listener tracing the data...
var loader:URLLoader = URLLoader(event.target);
trace(loader.bytesLoaded);
trace(loader.bytesTotal);
trace(loader.data.length);
My trace shows (during one test...)
46067
65536
46067
So, we have a case where: loader.bytesLoaded == loader.data.length, but loader.bytesLoaded != loader.bytesTotal.
With bytesLoaded not equal to bytesTotal, that means the data is not loaded, yet by listener was called. I have sniffed the net traffic and it does report seeing a HTML response of 64k in size.
How is it this possible? All of the docs state that Event.COMPLETED is called when the data is completed loaded, yet tracing the properties of the loader clearly indicates that the data is not completed loaded! Is this a new wrinkle with the newest players?
I am using the latest FLASH player as of 7/20/2010, CS4 10.0.2; running on XP SP3
thanks,
bob
