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

Multilanguage in flash cc.

New Here ,
Jun 04, 2015 Jun 04, 2015

How can we support a multi-lingual functionality in flash cc? As string panel is been Deprecated in a flash CC. Is there any other easy way to set a different value to text fields for multiple languages like string panels? Or xml is the only way ?

Currently we want to support English and Japanese language but we might introduce different language in future, So what is the best solution for it ?

TOPICS
ActionScript
758
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
Community Expert ,
Jun 04, 2015 Jun 04, 2015

use dynamic textfields and assign the text property of those textfields using actionscript.

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
New Here ,
Jun 04, 2015 Jun 04, 2015

Which text property you mean?

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
Community Expert ,
Jun 05, 2015 Jun 05, 2015
LATEST

there's only one text property:

// initial language selection 'page'

var language1:Array=['language 1 text for first tf','language1 2nd tf's text', etc];

var language2:Array = ['language 2 text for first tf','language2 2nd tf's text', etc];

var languageNum:int;

function selectLanguageF(e:somekindofinteractiveevent):void{

languageNum=

}

//  all other pages for all textfields

tfx.text=this['language'+languageNum];

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