Linked TLF text fields hell! (Bug?)
This should be so simple, but as usual with Flash it's a complete nightmare that has taken me nearly 2 days to try and do using various 'solutions' thrown up by google, and to no avail.
Ok, so enough venting of frustration, onto the problem...
—
I have 3 linked TLF text fields on stage, and am trying to load in external text from a .txt file. The first text field in the chain has an instance name (Box) which I target to load in the text with As3 like this...
—
var Text:URLLoader = new URLLoader();
Text.dataFormat = URLLoaderDataFormat.TEXT;//is this needed?
Text.addEventListener(Event.COMPLETE,Loaded);
Text.load(new URLRequest("external.txt"));
function Loaded(event:Event):void
{
//Box.text = Text.data; // Text flows between text fields, but obviously HTML tags show up as part of the text and don't actually work.
Box.htmlText = Text.data; // HTML tags obviously work as they should. But now the text wont' flow between text fields
//Box.tlfMarkup = Text.data; // This behaves in exactly the same way as .htmlText (obviously I change the URLRequest to target an .xml file instead)
}
—
The problem is as soon as the data type is changed to anything other than .text, the text fails to flow between the text fields on stage.
I don't know whether this is a bug (and if so if/when it will be fixed) or is simply not possible, and not knowing which makes it even more annoying!
Please help! Thanks!
