ColumnCount setting not exporting?
Hello,
exporting from textFlow, using a regular Text Layout Format would apparently export everything, except for changes that have been done during runtime on container Format.
Why are those changes not updated in the surrounding <TextFlow/> tag? Same holds true to firstBaselineOffset etc.
I am using regular export:
TextFilter.export(textFlow,TextFilter.TEXT_LAYOUT_FORMAT, ConversionType.XML_TYPE);
The TextFlow tag still contains columnCount=3 attribute, although it was changed during editing to columnCount=2.
<TextFlow paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" textAlign="left" verticalAlign="inherit" textAlpha="1" paragraphSpaceBefore="0" paragraphSpaceAfter="0" paragraphStartIndent="0" paragraphEndIndent="0" textDecoration="none" fontFamily="_sans" fontLookup="device" columnCount="3" firstBaselineOffset="ascent" lineBreak="inherit" fontSize="12" color="0x0" paddingBottom="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">
<p fontLookup="device">
<span fontLookup="device">Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres.</span>
</p>
</TextFlow>
When I run through the controllers of the textFlow Composer, the correct attributes can be found:
var numCont:Number = textFlow.flowComposer.numControllers;
for(var i:Number = 0;i<numCont;i++){
var controller:ContainerController = textFlow.flowComposer.getControllerAt(i);
trace(controller.columnCount); // -> 2
}
But it is hastle to read out all those attributes and change the settings in the TextFlow export. Can I trust this information to be the correct one? Is there a smarter way of exporting with all relevant attributes at once?
Thank you in advance,
Jo.
