1

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

veeeb
  • 11
  • 2
  • Two different approaches proposed elsewhere on stackoverflow http://stackoverflow.com/questions/3892707/paste-rich-text-into-flash and http://stackoverflow.com/questions/11475306/adobe-tlf-with-flex-as3-how-to-programmatically-change-n-in-text-string-into-p – widged Aug 08 '12 at 10:48

1 Answers1

0

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

drkstr
  • 609
  • 6
  • 9