Skip to main content
April 20, 2006
Question

xml and line brake problem (\p <br>)

  • April 20, 2006
  • 1 reply
  • 354 views
im populating dinamic textfields with data retrieved from xml document. but wen i assign the text to the field, it doesnt render as html.
the html property of the textfield is true.
if i trace the variable it looks like html, but i doesnt render well
if i debug variables within preview window, the "\r" tag appears as"\\r", but if a i trace the variable, it shows as"\r"
does anybody knows how to put this to work?
thanks a lot!
This topic has been closed for replies.

1 reply

Participating Frequently
April 20, 2006
if you're creating the textField on stage and not script, somehow, clicking on the html thingy doesn't work. it doesn't for me, at least.
in your script, just add the flag and it should work.
my_txt.html = true;
my_txt.htmlText = myHTMLString;
April 20, 2006
i tryed as you said, but no change.
still not rendering the text as it should.
i tried setting the htmlText directly with a string at authoring time, and it rendered the \r but not <br>
i really dont understand