[Twisted-web] canvas without flash and optimization patches

Stefano Debenedetti ste at demaledetti.net
Mon Feb 21 13:02:40 MST 2005

Steven Armstrong wrote:
> Wouldn't it be possible to use something like JSON [1] instead of XML?
> Like that you may have the best of both worlds. Structured data and a
> lighter format than xml. JS and Python work very nicely with it.
> [1] http://www.json.org

At first glance, it seems not so easy because the eval function in Flash does not work like in Javascript: its parameter can only be "a string containing the name of a variable, property, object, or movie clip to retrieve" and not any arbitrary expression [1].

Of course you can do that yourself but then you would probably find out that Flash's native XML parser does a better job.. that would be interesting to find out...


[1] http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary200.html

More information about the Twisted-web mailing list