Skip to main content
Participant
June 5, 2015
Question

Multilanguage in flash cc.

  • June 5, 2015
  • 1 reply
  • 728 views

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 ?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 5, 2015

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

Participant
June 5, 2015

Which text property you mean?

kglad
Community Expert
Community Expert
June 5, 2015

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];