开发者

Multilingual Flash

How do you make a Flash movie (using Haxe, or Actionscript code rather than the ID开发者_Python百科E) that supports multiple languages?

Can you detect the browser's language?

Are there utility classes for managing the strings and selecting the appropriate one based on language?


the easiest way that i have found to get around this is to have seperate XML documents that provide each language string. depending on the language initialisation load the different xml file, xml_en.xml/xml_fr.xml etc... then the rest of the program is completely the same and the system is completely expandable if you need to add more later.

these files can either be loaded externally or embedded in the swf file for ease of transportation.

i always ran the language setup by passing a flashvar from the loading page. do you have access to the hoasting page?


flex 3 has support for this: http://bugs.adobe.com/confluence/display/ADOBE/Flex+3+Details+-+Runtime+Localization

other than that there is nothing I know of. The Flash IDE itself also allows creating multilanguage content (at least Flash 8 did), but I guess you're better of creating your own utilities.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜