import mx.controls.*; onEnterFrame = function() { trace(text_txt instanceof TextField); delete onEnterFrame; }