开发者

flex TextLayoutFramework TextScrap how to access the textFlow of a PasteOperation

开发者 https://www.devze.com 2023-01-12 06:27 出处:网络
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

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号