Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problems with displaying Asian languages dynamically in a text box

Engaged ,
Apr 24, 2014 Apr 24, 2014

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?

TOPICS
ActionScript
313
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guru , Apr 25, 2014 Apr 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)

Translate
Guru ,
Apr 25, 2014 Apr 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)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 25, 2014 Apr 25, 2014
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines