Chris Pugh wrote:
2009/2/28 Pablo Rodríguez:
But I still have an issue with this loader. All getBytesLoaded and
getBytesTotal are counted with uncompressed sizes and since the actual file
is compressed, these size numbers are wrong. Is there any way to get the
actual compressed bytes with getBytesLoaded?
Maybe the loader has an issue with you?! ;o) What compressed file? Please
elucidate.
Many thanks for your reply and sorry for my inaccurate reply.
Both preloader loader (lessig-freeculture-loader.swf) and presentation
(lessig-freeculture-loader.swf) are uploaded at
http://www.archive.org/download/Lessig-Free_Culture/.
The presentation is a 6.4MB file generated by swfc. It has been
generated with compression. The preloader loads the presentation, but
when getting the bytes loaded and the total bytes, it counts the bytes
as the presentation were uncompressed (so it gives a higher file size:
8.7MB).
It seems that this is an ActionScript “feature”. Is there any way to get
the actual number of bytes loaded and to be loaded, that is, the bytes
in compressed format?
I hope I have explained myself in a more accurate way.
Thanks for your help,
Pablo