OZONE Asylum
Forums
Multimedia/Animation
How to display Chinese character in Flash using XML??
This page's ID:
27609
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
oh i solved the problem.... i succesfully managed to show chinese character in flash using XML. here's what i did: - I changed the encoding in the XML file from UTF-8 to GB2312 for Chinese character - I changed the fonts to Chinese specific fonts and embed the character to the FLA file. The only drawback is that it increases the number of glyphs from 127 to nearly 14,000 hence it yileds to a bigger file size (from 230Kb to nearly 2.5MB --> because there are two text fields where I need to change the fonts and embed them). Apparently I cannot just embed the font only once (I thought this would apply for the rest of the FLA but it's not). -->So for each section where you want to display and use Chinese character you have to change the font to Chinese typeface and embed it again... this apply for each text field. So go figure, how big the file is gonna be! - and then, in the movie clip where the text field is showing, I insert a Boolean value in the first line before the loadVariables section... And here's what I used: System.useCodepage = false; At first I set the value to TRUE and it displayed the character incorrectly so I change it to FALSE because when the property is set to FALSE, Flash player will interprets external text file as Unicode. --> this why you should embed the fonts... et voila...!! now i can easily update the content just from the XML file... bon... ce soir je peux dormir mieux... ! ! merci beaucoup et tres bientot... kalyan.sabriel i love mankind, it is people that i cannot stand.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »