What to do when loaderInfo.bytesTotal is zero

I am developing a flash file that will be uploaded to dozens of sites that I can’t control. I found out that one of them seems to be gzipping swf, which calls loaderInfo.bytesTotalzero. This spins the loading animation.

I tried a workaround for simple testing, if it bytesTotalis zero, if so simple to continue. This does not work because, as expected, all the necessary data has not yet been loaded. Alternatively, I can set the time delay expected from the expected load time and hope that it covers all the databases.

Does anyone have any other suggestions? Ideally, there is an alternative way to determine bytesTotal, but I have not found it.

FYI is somewhat related to this question: Why is loaderInfo.bytesTotal zero?

But I can’t make the htaccess offer because I don’t have control over other sites, some of which may be on Windows servers anyway.

+5
source share
3 answers

If possible, you can transfer the full byte via flashvars or save it to a file. If you use some script to define files for laod, you can also specify the size and pass it to flash so that if totalbytes is 0, you can calculate progress based on the size specified in another way.

This is the only solution I know for this problem.

0
source

, Google Chrome Flash-. Chrome, Total . , , , .

I found a solution how you can detect when a full download is completed in any situation. You can check this answer: Why is loaderInfo.bytesTotal zero?

0
source

All Articles