I'm trying to set a set of labels but its based on public variable whichmeal.
Is there a special way to use these labels dynamically?
try{
this["public_{whichmeal}_item1_label"] = item1_label.text;
this["public_{whichmeal}_serving1_label"] = serving1_label.text;
}catch(err:Error){
Alert.show(err.toString());
}
Shows
Reference Error 1069
Reference Error 1056

