import mx.controls.TextArea; this.createClassObject(TextArea,"my_ta",5,{text:"Test Button"}); f = new TextFormat(); f.color = 0xFF0000; tf = function() { delete onEnterFrame; this.my_ta.label.setTextFormat(0,4,f); } onEnterFrame = tf;