Hidden APIs of Flash, Flex, Flash Player, and AIR


URL (URI) encoding/decoding

ActionScript developers has been using escape()/unescape() functions to encode/decode Uniform Resource Identifiers (URI). Technically, escape() works differently.

Adobe Flash Player 9 introduced some API (global or top-level) functions encodeURI, decodeURI, encodeURIComponent and decodeURIComponent to work with URI encoding.

It is recommended to use these new functions for URI encoding/decoding.

I thought of writing the difference between escape() and new API functions but following blog posts would explain better than me.


Note: Above links are in context of JavaScript and Browser, I am expecting (assuming) behavior of ActionScript functions in Flash Player should not be different, since all of these follow same standard(s).

Labels: , , ,




© 2006 Hidden APIs of Flash, Flex, Flash Player, and AIR


onFlex.org Stats