Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I had the same problem - have dynamic text fields created in Flash, load external CSS to format the text from XML file. The first line in text fields is always indented. I tried all the techniques including xml.ignoreWhitespace set to true and others. Nothing helped. When debugging the xml string in FDT it turns out there are linebreaks "\n" symbols that get inserted into my strings. Well, the only solution I was able to find is to wrap all my html tags in XML into CDATA tags.
Like so:
<header><![CDATA[<h3>Design</h3>]]></header>
<text><![CDATA[<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sed velit nibh. Nullam vitae ipsum a ipsum dictum viverra. Vivamus.</p>]]></text>
Watch out for spaces between the <![CDATA[ and <h3> tags and the text itself. Because if you insert one, it will look like an indent and you might spend another couple hours thinking it didn't work ![]()
Hope this helps someone else as well.
Copy link to clipboard
Copied
Same problem here - fortunately managed to solve it by setting 2 properties of the XML class:
XML.prettyIndent = 0;
XML.prettyPrinting = false;
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/XML.html#prettyIndent
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/XML.html#prettyPrinting
I guess this is a problem surfacing through implicit casting of xml objects to strings...
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more