<text id="ending">
<![CDATA[
<flow:TextFlow verticalAlign="middle" paddingTop="0" paddingBottom="0" paddingLeft="0" paddingRight="0" columnCount="1" columnWidth="auto" whiteSpaceCollapse="preserve" xmlns:flow="http://ns.adobe.com/textLayout/2008">
<flow:p textAlign="center">
<flow:span fontSize="18" color="0x999999" fontFamily="Franklin Gothic Book" fontLookup="embeddedCFF">
Pixelfarm bedenkt en creeert effectieve
</flow:span>
</flow:p>
<flow:p textAlign="center">
<flow:span fontSize="18" color="0x999999" fontFamily="Franklin Gothic Book" fontLookup="embeddedCFF">
digitale communicatie.
</flow:span>
</flow:p>
<flow:p textAlign="center">
</flow:p>
<flow:p textAlign="center">
<flow:span fontSize="18" color="0x999999" fontFamily="Franklin Gothic Demi Cond" fontLookup="embeddedCFF">
Ook nieuwsgierig wat we voor
</flow:span>
</flow:p>
<flow:p textAlign="center">
<flow:span fontSize="18" color="0x999999" fontFamily="Franklin Gothic Demi Cond" fontLookup="embeddedCFF">
uw merk kunnen betekenen?
</flow:span>
</flow:p>
<flow:p textAlign="center">
</flow:p>
<flow:p textAlign="center">
<flow:span fontSize="18" color="0x999999" fontFamily="Franklin Gothic Book" fontLookup="embeddedCFF">Email ons op </flow:span>
<flow:a href="mailto:contact@pixelfarm.nl">
<flow:span color="0xD8363D" fontSize="18" fontFamily="Franklin Gothic Book" fontLookup="embeddedCFF">contact@pixelfarm.nl</flow:span>
</flow:a>
<flow:span fontSize="18" color="0x999999" fontFamily="Franklin Gothic Book" fontLookup="embeddedCFF"> of kijk op</flow:span>
</flow:p>
<flow:p textAlign="center" textJustify="interWord">
<flow:a href="http://www.pixelfarm.nl" target="_blank"><flow:span color="0xD8363D" fontSize="18" fontFamily="Franklin Gothic Book" fontLookup="embeddedCFF" >www.pixelfarm.nl</flow:span></flow:a>
<flow:span fontSize="18" color="0x999999" fontFamily="Franklin Gothic Book" fontLookup="embeddedCFF">
voor een overzicht met werk.
</flow:span>
</flow:p>
</flow:TextFlow>
]]>
</text>
and heres the AS3 code
public function set comment(parValue:String):void {
var textXML:XML = XML(parValue);
if (_commentContainer) {
TweenMax.to(_commentContainer, 0.5, { alpha:0, onComplete:Constants.cleanRemoveChild, onCompleteParams:[_commentContainer] } );
_commentContainer = null;
}
if (_textContainer) {
TweenMax.to(_textContainer, 0.5, { alpha:0, onComplete:Constants.cleanRemoveChild, onCompleteParams:[_textContainer] } );
}
if(!_importer){
_importer = new TextLayoutImporter(new Configuration());
}
_flow = _importer.createTextFlowFromXML(textXML);
_textContainer = new Sprite();
_timeline.addChild(_textContainer);
_containerController= new ContainerController(_textContainer, _timeline.stage.stageWidth, _timeline.stage.stageHeight);
_flow.flowComposer.addController(_containerController);
_flow.flowComposer.updateAllControllers();
_textContainer.alpha = 0;
TweenMax.to(_textContainer, 0.5, { alpha:1, delay:0.5 } );
}
I believe you need to modify the ignoreWhiteSpace property before the XML declaration is processed. Its using the default setting.
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/XML.html#ignoreWhitespace
Also you can get rid of all the flow: prefixes by following this pattern.
<TextFlow xmlns="http://ns.adobe.com/textLayout/2008">
<p><span>...</span></p>
...
</TextFlow>
Hope that helps,
Richard