How to copy a textflow?
Dear Sirs,
I need make a copy of textflow, but I'm having difficulties. I try to use the deepCopy, but it also copies the header <textflow /> , and when I insert in another textFlow, it's duplicate:
var el1: FlowElement = textflow.deepCopy();
textFlow2.replaceChildren(0, textflow.numChildren, el1);
Result:
<TextFlow whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008"><TextFlow whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">Teste</TextFlow></TextFlow>
Is there some way to go about this?
