R – prevent copy+paste for TextArea()

actionscript-3apache-flexflex3

How to prevent ctrl+v paste for flash.display.textarea()?

field.selectable = false; does not seem to work, also it disables caret/cursor

Best Answer

this seem to work in TextEvent listener, any comments is it too bad solution to avoid copy+paste to a field ?

if (evt.text.length >1) 
evt.preventDefault () ;
Related Topic