开发者

Chinese characters in strings for dynamic text in Flash

开发者 https://www.devze.com 2023-02-02 02:53 出处:网络
I have a Flash file which contains some dynamic text boxes. ActionScript is being used to fill these boxes using strings. However, I can\'t seem to get Chinese characters to appear properly. I\'ve tri

I have a Flash file which contains some dynamic text boxes. ActionScript is being used to fill these boxes using strings. However, I can't seem to get Chinese characters to appear properly. I've tried the actual unicode character as well as their unicode-escaped equivalent but when I export开发者_如何学Go the movie, nothing shows up (blank - it was assumed that the characters are not even present). The EURO symbol does show up but not any of my Asian chars. How do I fix this?

Thanks!

e.g.

myTitle = "Hello 新浪网"

where myTitle is the dynamic text box's variable name.


I tried this and it worked.

First add your font to the Library. Right click the Library and choose "Add Fonts". Select your the font that you want, name it something e.g. "MyFont", Choose the point size to match the size that you're using in your dynamic text box. Then for your dynamic text box, select "MyFont" as the Font and also choose to Embed Characters. Select the Chinese character set that you want.

Now try it and it should work.


You need to embed the font. Or at least load it before displaying those characters.


Jase21 is right there's an issue with the way your embedding your fonts. You either haven't done it at all or you've done it improperly. Heres a good video tutorial that should help you out:

http://gotoandlearn.com/play.php?id=102

0

精彩评论

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