flex TextLayoutFramework TextScrap how to access the textFlow of a PasteOperation
after reading http://livedocs.adobe.com/labs/textlayout/flashx/textLayout/edit/TextScrap.html
flashx.textLayout.edit.TextScrap should have a public [read-only] property textFlow
but it is protected in flex_sdk_4.1.0.16076...
does anybody know how to access a pasted TextFlow?
Clipboard.generalClipboard.getData("TEXT_LAYOUT_MARKUP") returns only a XML - not the obje开发者_如何学Gocts...
I'm assuming this is being pasted into a RichEditableText component?
If so, you would listen for a TextOperationEvent.CHANGING event which will have a FlowOperation that you can use to reference the TextFlow. You will to check if(FlowOperation is PasteOperation) before doing so. This can also be captured post update by listening for "change", but then you won't be able to manipulate the operation if needed (which I'm assuming is why you need to access the flow object).
精彩评论