Thanks, I'll have a look at that.
And yes, I am generating *long* urls. I serialize the application state 
into a long string that is sent to the browser as the hash part of an 
url. The idea is to be able to bookmark the app. state (and it actually 
works well right now with urls around 1500 chars).
There is no real 1000 char limit, but probably a 2000 one - I've been 
told IE has a 2K limit.
Right now the serialized state is about 2400 chars, but I imagine it'll 
grow when more requirements are added:).
If using a backend was an option I wouldn't have to do it this way, but 
unfortunately it is not. The app has to be able to run from any server, 
even locally.

Cheers
/Henrik



Martin Wood wrote:
> i dont know of any actual implementations, but it sounds like it might be a 
> good 
> candidate for Huffman coding. Its not too difficult to implement. :)
> 
> here's a good page here explaining how it works :
> 
> http://www.cs.duke.edu/csed/poop/huff/info/
> 
> and here is a page here with python code :
> 
> http://gumuz.looze.net/wordpress/index.php/archives/2004/11/25/huffman-encoding/
> 
> as to whether you can actually achieve that level of compression really 
> depends 
> on your input. If you absolutely must get to 25% of the input size you might 
> need to consider something a bit more hardcore :)
> 
> What concerns me is are you really going to generate a 1000 character url? or 
> are the numbers just for demonstration purposes?
> 
> thanks,
> 
> Martin
> 
> 
> Henrik Lindahl wrote:
> 
>>Hi,
>>I wonder if anyone knows of symmetric string compression librarys for AS.
>>What I'm looking for is functions to compress a string of about 4000 
>>characters to something like 1000 and then be able to recreate the 
>>original string. A symmetric String codec?;)
>>
>>Can this be done efficiently in AS2?
>>
>>Oh, and the encoded string must be displayable in a web browsers url;)
>>
>>Cheers
>>/Henrik
>>
>>
>>
>>_______________________________________________
>>osflash mailing list
>>[email protected]
>>http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
> 
> 

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to