I want to apply a font style to the objectSelect that hold id. I know currentTarget.id or Target.id do the job but any way to make the setStyle apply to "text1"?
private function changeFontStyleFromCombobox(e:Event):void {
trace(objectSelect); //it hold "text1" value from one of the textarea.id
if(objectSelect != null) { // shown text1
objectSelect.setStyle("fontFamily", e.target.selectedLabel);
}
}
e.target.selectedLabel value come from combobox.