Adding Colums
Hi,
I have a Component with a RichEditable text and I want to display the text in two colums.
I found this example code here:
private function changeColumnCount(newCount:String):void
{ if (_textFlow && _textFlow.interactionManager is IEditManager) { var cf:TextLayoutFormat = new TextLayoutFormat(); cf.columnCount = newCount; IEditManager(_textFlow.interactionManager).applyContainerFormat(cf); _textFlow.interactionManager.setFocus(); } }
When I try to apply it to my RichEditableText.textFlow nothing happens.
Even the if condition is not true?
I tried it like this:
private function changeColumnCount(newCount:String):void { if (myEditor.textFlow && myEditor.textFlow.interactionManager is IEditManager) { var cf:TextLayoutFormat = new TextLayoutFormat(); cf.columnCount = newCount; IEditManager(_editor.textFlow.interactionManager).applyContainerFormat(cf); myEditor.textFlow.interactionManager.setFocus(); } }
What do I miss?
Is there somewhere a simple Flex4 example for a 2 Colum Rich Editable Text?
