
Код AS3:
public static function changeTFProperty($textField:TextField, $propertyName:String, $value:*, $default:Boolean = false):void
{
var tempFormat:TextFormat = $textField.getTextFormat();
tempFormat[$propertyName] = $value;
if ($default)
$textField.defaultTextFormat = tempFormat;
else
$textField.setTextFormat(tempFormat);
}
----------------------------
TextEditor.changeTFProperty(_descriptionTF, "size", 14); // пример