문제

How do you make a Flash movie (using Haxe, or Actionscript code rather than the IDE) 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top