Saturday, May 5, 2007

flash.text.TextField.copyRichText()

Definition: internal function copyRichText():String
The value returned is in flashrichtext format.

This function is only used if TextField.useRichTextClipboard is true.

This function does not appear to actually perform the copy function. Instead it simply returns the value to copy which is just the result of getXMLText(selectionBeginIndex,selectionEndIndex). This means that you cannot programmatically force a copy using this function. If this function returns null, plain text is copied.

To override this function see How To.Hack the "internal" namespace

No comments:

"Flex", "ActionScript" and possibly "MXML" are probably trademarks of Adobe Systems Incorporated.
"Adobe" is a trademark of Adobe Systems Incorporated.
This site is in no way endorsed or sponsored by Adobe Systems Incorporated.
Content Copyright © 2007 Daniel Freiman.
Site Design Copyright by its copyright holder.
The Flex Non-Docs reserves the right to remove comments for any reason.
All ActionScript and MXML code (and ONLY ActionScript and MXML code) on this website is available under the MIT License.