Not as simple as theTextField.size = someNumber
Solution Below:
import flash.text.TextField; import flash.text.TextFormat; function setTextSize(i_txtFld:TextField, i_ptSize:Number){ //Solution: var tmpF:TextFormat = i_txtFld.defaultTextFormat; tmpF.size = i_ptSize; i_txtFld.defaultTextFormat = tmpF; //Not simply this easy.. //i_txtFld.defaultTextFormat.size = i_ptSize; }//[FN:setTextSize]
No comments:
Post a Comment