I have external texts file that I'm loading into Flash containing strings
like this....
&content=1243,24,2423423,4235436,64564,64,45,6767867,8768,76... etc.
Many of these text files I'm importing are over 100K. Can anyone things
of a
way to import this data into Flash to improve download times (ie, some type
of compression that decompresses in Flash, etc.).
I originally had this data in a database and called this data via AMFPHP
and
the data transfer was fast but for various hosting reasons I have to keep
this data as text files.
You could compress the strings using LZW; this is easily done, however,
since they're files that you actually download, it won't have a result.
The files will be smaller, yes, but download time will be roughly the
same. Since the download protocols itself automatically compresses data
when sending it, and text files are highly compressable, 100kb in a text
like that is nothing.
If you're having problems with server transfer - meaning you need to
mathematically make the files smaller - then yes, by all means look into
some server-side LZW compression and a client-side AS decompression
algorithm; easy to find. But other than that, there's no advantage to
using compressed data like this. Download performance won't any be
different.
Zeh
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com