I'm using a ProgressEvent in Flash to determine how long something will take to download. I've got this:
progress = event.target.bytesLoaded/event.target.bytesTotal;
to set a percentage.
After some scratching of my head, I did a trace on the two values – and it turns out that "event.target.bytesTotal" is always equaling zero.
I can't find any mention of this in the Flex/AS3/Flash API. Any hints on how to get bytesTotal to work?
(I'm currently reading from a PHP file on the webserver)