hi,
so far I use this:
LNG = Ui.loadResource(Rez.Strings.LANG).toNumber();
if (LNG==0){
CFS = Ui.loadResource(Rez.Fonts.customFontSRUS);
CFVS = Ui.loadResource(Rez.Fonts.customFontVSRUS);
} else if (LNG==1){
CFS = Ui.loadResource(Rez.Fonts.customFontSSLO);
CFVS = Ui.loadResource(Rez.Fonts.customFontVSSLO);
} else if (LNG==2){
CFS = Ui.loadResource(Rez.Fonts.customFontSGRE);
CFVS = Ui.loadResource(Rez.Fonts.customFontVSGRE);
} else {
CFS = Ui.loadResource(Rez.Fonts.customFontS);
CFVS = Ui.loadResource(Rez.Fonts.customFontVS);
}
is it possible to load it dynamically? like:
var FONTs=[:customFontSRUS,:customFontSSLO,:customFontSGRE,:customFontS,:customFontS]; CFS = Ui.loadResource(Rez.Fonts.FONTs[LANG]);
my aim is to save memory.
have a great day