Skip to main content
Mr. Baker the Shoe Maker
Inspiring
April 25, 2014
Answered

Problems with displaying Asian languages dynamically in a text box

  • April 25, 2014
  • 2 replies
  • 346 views

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?

This topic has been closed for replies.
Correct answer moccamaximum

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)

2 replies

Mr. Baker the Shoe Maker
Inspiring
April 25, 2014

Thanks. I embedded the correct font and everything worked fine!

moccamaximumCorrect answer
Inspiring
April 25, 2014

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)