I have a text field on the stage with an instance name of "main_txt" and another named "title_txt". I want to load text dynamically using TLF text so I can use the new TLF options. Loading dynamic text works perfectly with classic text but as soon as I change to TLF text I get an error:
'Cannot access a property or method of a null object reference.'
Does anyone know if this a bug in CS5 and if there is a way to get around it??
I also tried importing every text and TLF class I could find but still got the error.
My code:

package {
import flash.display.Sprite;

public class Info extends Sprite{

public function Info(_title:String,_video:String = null,_mainText:String = "") {
// constructor code
title_txt.text = _title;
video_mc.source = _video;
main_txt.text = _mainText;
}
}
}