Let’s take the following…
[LEFT]var motto_en:[COLOR=#0000ff]String[/COLOR] = [COLOR=#ff0000]"God and my right"[/COLOR];
var motto_fr:[COLOR=#0000ff]String[/COLOR] = [COLOR=#ff0000]"Dieu et mon droit"[/COLOR];
trace[COLOR=#000000]([/COLOR]motto_fr[COLOR=#000000]);[/COLOR][/LEFT]
This returns [COLOR=green]Dieu et mon droit[/COLOR]. Cool. But if I try this…
[LEFT]var motto_en:[COLOR=#0000ff]String[/COLOR] = [COLOR=#ff0000]"God and my right"[/COLOR];
var motto_fr:[COLOR=#0000ff]String[/COLOR] = [COLOR=#ff0000]"Dieu et mon droit"[/COLOR];
var lang:[COLOR=#0000ff]String[/COLOR] = [COLOR=#ff0000]"fr"[/COLOR];
trace[COLOR=#000000]([/COLOR][COLOR=#ff0000]"motto_"[/COLOR]+lang[COLOR=#000000])[/COLOR];[/LEFT]
… what I get back is [COLOR=red]motto_fr[/COLOR], which is not cool, because I want to get back [COLOR=green]Dieu et mon droit[/COLOR]. Basically I’m looking for a setup like the second example that returns the value of [COLOR=blue]**“motto”+lang **[/COLOR]rather than the string.
HELLLLP!, please. :eek: Thanks!