TLFTextField objects are not available for use in ActionScript until they are added to the scene.
Example (assumes a TLFTextField instance in the scene with the name "text"):
package {
import flash.display.*;
import flash.events.*;
public class Text extends Sprite {
public function Text() {
trace(text);
this.addEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
}
private function _onAddedToStage($e:Event):void {
trace(text);
this.removeEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
}
}
}
Conclusion:
null
[object TLFTextField]