-
Method reference
Hi,
I have multiple Comboxes that I need to set the fonts etc due to Masks. Currently I repeat the following for each of them:
soutfit_cb.textField.setStyle("embedFonts", true);
soutfit_cb.textField.setStyle("textFormat", tf_tlabel);
Is it possible to do something like this:
Loop through the six combo box names (soutfit, sback, sduration, spax, stype) and reuse the code? i.e.
SOME_VARIABLE.textField.setStyle("embedFonts", true);
Thanks,
Johann
-
Solved the problem:
Just use:
var comboName:String = "pduration";
this[comboName].textField.setStyle("embedFonts", true);
Thanks.