I've found a bug with the .complete event object. The total
variable with this object does not react property if there is a
delay in downloading the requested image in IE.
Has anyone else ran into this problem??
The below code will seem to work fine, until you put a
bandwidth limiter on port 80, or attempt to proxy the image through
a script, then the following will occur:
1. The flash movie sends a get request for the image:
GET some.jpg HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; SV1; InfoPath.1)
2. The Loader .complete function will fire and the 'total'
variable in the event object will be -1 (failure).
3. The server will then respond with:
HTTP/1.1 200 OK
Date: Mon, 16 Oct 2006 19:09:13 GMT
Flash doesn't even attempt to wait for a response from the
This is horrible because there is no other way i can
determine if there was an error while the image downloaded.
The time out, waiting for the response is very very low. We
have only been able to reproduce this in IE with a bandwidth
limiter. Firefox doesn't seem to repoduce the error.