Making Flex HTML Control UnSelectable

Posted by Joshua on Stack Overflow See other posts from Stack Overflow or by Joshua
Published on 2010-05-02T18:28:36Z Indexed on 2010/05/02 18:38 UTC
Read the original article Hit count: 188

Filed under:
|
|
|

I am displaying some HTML text in an Adobe AIR Application that I do not want the user to be able to cut and paste. How do I make the HTML control disallow highlighting of the HTML without disabling the ScrollBars. mouseChildren=false works but disables the scrollbars which is unacceptable. Right now I have:

        <mx:HTML location="http://dexter/preview.html" width="100%" height="100%" id="PreviewArea" x="0" y="0"  tabEnabled="false" tabChildren="false" focusEnabled="false" focusRect="null"/>

But it's not working properly either. I have also tried overlaying a disabled transparent text control over the top of the HTML component, but the user is still able to tab to the HTML and use the keyboard controls to copy the text to the clipboard.

Any hints?

© Stack Overflow or respective owner

Related posts about flex

Related posts about air