Groups | Blog | Home
all groups > flash actionscript > april 2006 >

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


lseba
4/20/2006 10:23:23 PM
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!

shyaway
4/20/2006 10:59:05 PM
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;
lseba
4/20/2006 11:07:47 PM
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
AddThis Social Bookmark Button