How to hide/disable copy/paste option in context menu on spark TextArea in Adobe AIR

Just try with this

protected function editor_rightMouseDownHandler(event:MouseEvent):void


if((editor.textDisplay as RichEditableText) != null && (editor.textDisplay as RichEditableText).contextMenu != null)


((editor.textDisplay as RichEditableText).contextMenu as ContextMenu).hideBuiltInItems();
((editor.textDisplay as RichEditableText).contextMenu as ContextMenu).clipboardMenu = false;

protected function editor_copyHandler(event:Event):void




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s