2009-04-22 16 views
0

In meinem Flex-Projekt, das ich bin mit XML Textflow füllen mit:flex xml appendChild

TextFilter.importToFlow(XML(str), TextFilter.PLAIN_TEXT_FORMAT); 

Ich mag woud HTML-Links zu dem Textfluss hinzuzufügen. Dafür gebe ich html ein Tag in xml ein, aber ich bekomme einen Parserfehler (missformed xml).

var fixed:String; 
fixed = fixed.replace(link, "<a href='event:xyz' >"+link+"</a>"); 

XML: 
<TextFlow xmlns="http://ns.adobe.com/textLayout/2008"/> 
added link as <a href='event:xyz' >link</a> 
</TextFlow> 

Antwort

0

Versuchen Sie TextFilter.PLAIN_TEXT_FORMAT zu TextFilter.TEXT_LAYOUT_FORMAT ändern.