Skip to main content
Known Participant
August 2, 2006
Question

text ALMOST loading correctly

  • August 2, 2006
  • 4 replies
  • 320 views
not sure what i am missing here...i have a text box in a movieclip....all created at runtime....i can see the first line of the text, formatted just great....but then it is "cut off" at the end...as you can see by the snippet of code from this movie, the wordWrap is set to true....anything else that i am missing...the text entries are much much longer than just one line....thanks

This topic has been closed for replies.

4 replies

VertineAuthor
Known Participant
August 3, 2006
thanks kglad- you're always a great help!

In the end , i got fed up, and started over...rather than first coding the background fill/ image and all the fancy stuff, i started with creating the text box in an empty mc (as a seperate function, and then i worked around that....it looks like this (edited)

function addTxBox() {
txField = mcFrame.createTextField("txField", holder.getNextHighestDepth(), 0, 0, bg._width, 150);
txField.wordWrap = true;
txField.setNewTextFormat(txStyle);
txField.autoSize = true;
txField.html = true;
txField.htmlText = entDate+"\n";
txField.htmlText += " >>> "+entTitle;
txField.htmlText += "\n"+entTx;
bg._height = txField.textHeight;
setOriginalProps();
}

and thanks for the clarity on multiline...i tried two versions: with and without multiline. The difference was immediate when in incoorporate "\n" . As you likely already know, without multiline, the txField does not read/utilize \n and there is no line break....that's a big difference!
kglad
Community Expert
Community Expert
August 2, 2006
that's wrong. it's also a dynamic textfield property.

if you're still having trouble post your code and show entryText.
VertineAuthor
Known Participant
August 2, 2006
tried that too...no luck (btw, can you confirm...i read that multiline is only for input text...or is that wrong??)
kglad
Community Expert
Community Expert
August 2, 2006
set txtField's multiline property to true.