Copy link to clipboard
Copied
I have a text box that I am adding to the stage dynamically. The text box is a movieclip in the library. However, when it is added to the stage the message is not displayed. I have no problems with English or Spanish but for Chinese, Korean, and Japenese the message is not displayed. Here is the code in Chinese (when a certain condition is met:
function whiteFlashCompleteF():void{
ssMessageF("æˆªå›¾å·²æ·»åŠ è‡³æ‚¨çš„å›¾ç‰‡åº“");
}
function ssMessageF(s:String):void{
ssMessage.alpha = 0;
addChild(ssMessage);
ssMessage.x=stage.stageWidth/2;
ssMessage.y=stage.stageHeight/2;
ssMessage.tf.text = s;
TweenLite.to(ssMessage,1,{alpha:1});
TweenLite.to(ssMessage,1,{alpha:0, onComplete:ssMessageCompleteF, delay:3, overwrite:false});
}
Do anyone have any ideas on how I can get the text to display?
any text that is rendered in a dynamic textbox during runtime,
has to consist of characters of a font you have properly embeded,
(which might not be the case for this chinese message)
Copy link to clipboard
Copied
any text that is rendered in a dynamic textbox during runtime,
has to consist of characters of a font you have properly embeded,
(which might not be the case for this chinese message)
Copy link to clipboard
Copied
Thanks. I embedded the correct font and everything worked fine!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now