A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How do I disable copying text

  1. #1
    FK Romeo martiansam's Avatar
    Join Date
    Oct 2001
    Location
    Bombay, India
    Posts
    223

    How do I disable copying text

    HI,

    I am using Flash MX 2004 Professional edition.

    I have a scenario where the user types in a few words or sentences and needs to repeat the same text within the same input text field before his time is up.

    Now to get the real results, I need to disable copying and pasting of text so the user does not get to type the text once and then simply copy and paste it again till the time is up.

    How do I disable the copy/cut/paste functionality in an input text field.

    I have tried the following code:
    Code:
    this.onEnterFrame = function() {
    	System.setClipboard(" ");
    }
    But then the above code disables the copying functionality in other applications as well till my flash application is running.

    Please help.

    Thanks
    sameer rao

    there...you see!!

  2. #2
    FK Romeo martiansam's Avatar
    Join Date
    Oct 2001
    Location
    Bombay, India
    Posts
    223
    bump
    sameer rao

    there...you see!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center