how convert an xml to string for a textflow
Hi
usually I use fields type String to feed the textFlows.
now for visual convenience, I would like to store them in file formatted XML, and the thing succeeds well, but when I want use them I have problems, because the formatting XML creates line spacings that I don't want,
for example:
<TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="toFit" paddingBottom="4" paddingLeft="4" paddingRight="4" paddingTop="4" paragraphSpaceAfter="15" paragraphSpaceBefore="0" verticalAlign="top" id="flow" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">
<linkActiveFormat>
<TextLayoutFormat color="#cc00cc" fontWeight="bold" textDecoration="underline"/>
</linkActiveFormat>
<linkHoverFormat>
<TextLayoutFormat color="#cc0000" fontWeight="bold" textDecoration="underline"/>
</linkHoverFormat>
<linkNormalFormat>
<TextLayoutFormat color="#000099" fontWeight="bold" textDecoration="none"/>
</linkNormalFormat>
<p color="#990099" fontSize="15">
<span>Gestione dei testi con TLF e Testo classico</span>
</p>
<p color="#666555" fontFamily="Arial" fontSize="14">
<span>Le novità introdotte con l'ultima release di Flash CS5 sono molteplici, una di queste novità riguarda i campi di testo.</span>
</p>
<p color="#990099" fontSize="15">
<span>Cosa c'è da sapere sul Text Layout Framework (TLF)?</span>
<img id="1|emot|0" height="18" width="18" source="[object Bitmap]"/>
<span></span>
</p>
<p color="#666555" fontFamily="Arial" fontSize="14">
<span>Che rispetto al Testo Classico,</span>
</p>
</TextFlow>
produce me:
init--------------------------------------------------------------
Gestione dei testi con TLF e Testo classico
Le novità introdotte con l'ultima release di Flash CS5 sono molteplici, una di queste novità riguarda i campi di testo.
Cosa c'è da sapere sul Text Layout Framework (TLF)?
![]()
Che rispetto al Testo Classico,
--------------------------------------------------------------------- end
instead of:
init--------------------------------------------------------------
--------------------------------------------------------------------- end
