1 Reply Latest reply on Apr 20, 2010 2:40 PM by joan_lafferty

    Text Field password copy and paste allowed?

    Brunoja

      Hello!

      I am using a Text Field as an Input for password, I set the  displayAsPassword to true, and it shows * instead of chars, but I still  can copy the content and paste on another Text Field (using ctrl c) to see what Ive  tiped! In the Adobe manuals its says that the copy and cut should be  disabled automatically but its not!! I am using Flex Open Source, may  it be a bug?

      tf = new TextField();
      tf.type = TextFieldType.INPUT;
      tf.displayAsPassword = true;
      addChild(tf);

       

      I added an listener for keypresses and if it presses ctrl key it erases  all the text field, to avoid someone to copy it, its not the perfect solution, but its working..

      What should I do?
      Thank you!