I have a flash file that has several text fields that get their content from a
xml document. My xml looks like this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<index_content>
<image no="1">
<imgLink>pages/collection.html</imgLink>
<title>Tree</title>
<text>Tree design on a olive short-sleeve t-shirt.</text>
<corner>men?s & women?s</corner>
</image>
</index_content>
The Flash file imports the xml and puts each child node of image into a
separate dynamic text field that is set to except html. I want to now be able
to give it line breaks. I have tried the following, but none did what I wanted
it to do.
<text><![CDATA[Astronaut design on a brown short-sleeve<br/>t-shirt.]]></text>
<text>Tree design on a olive short-sleeve\nt-shirt.</text>
<text>Tree design on a olive short-sleeve<br />t-shirt.</text>
<text>Tree design on a olive short-sleeve<br>t-shirt.</text>
What am I doing wrong?
Thanks for any help!
Brian
Sriframes.. - 21 Oct 2007 19:41 GMT
dont use "&" in text " mens & women's"
brian914 - 21 Oct 2007 19:47 GMT
Why not, and what should I use instead? What does this have to do with my issue above?
Thanks!
Sriframes.. - 22 Oct 2007 01:11 GMT
xMetal - 23 Oct 2007 21:48 GMT
i've often used the CData one. You can't use an html <br> tag unless your text field is set to use HTML. Try using the \n in your CData as well.
brian914 - 23 Oct 2007 23:11 GMT
I is set to html and I have tried all of the following.
<text><![CDATA[Astronaut design on a brown short-sleeve<br/>t-shirt.]]></text>
<text>Tree design on a olive short-sleeve\nt-shirt.</text>
<text>Tree design on a olive short-sleeve<br />t-shirt.</text>
<text>Tree design on a olive short-sleeve<br>t-shirt.</text>