On-the-fly Localization
August 18th, 2008 by RobSo, what if you want your users to be able to change locales on-the-fly? I’ve put together a simple component that loads and manages translations via XML.
So, what if you want your users to be able to change locales on-the-fly? I’ve put together a simple component that loads and manages translations via XML.
Here’s a little JSFL script that you can use to change the character-set embedding in all the input and dynamic TextFields in an entire Flash document. When you run it, it’ll pick the active document and pop up a prompt asking for the character-set IDs.
One of the biggest headaches in localizing Flash sites is setting up to dynamically load and easily use embedded fonts. Recently, in order to build a site that will need localization for an as-yet-undecided number of countries, I finally decided to dive in and solve this problem once and for all.