I use ProgressEvent in Flash to determine how long it takes to load. I have it:
progress = event.target.bytesLoaded/event.target.bytesTotal;
to set the percentage.
After some scratches in my head, I made a trace of two values - and it turns out that "event.target.bytesTotal" is always zero.
I cannot find mention of this in the Flex / AS3 / Flash API. Any tips on how to get bytesTotal to work?
(I am now reading from a PHP file on a web server)
source share