How to disable copy/past (selectable='disable') fromTextArea

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default How to disable copy/past (selectable='disable') fromTextArea

    How to disable copy/past and text selection ability from TextArea?

    <mx:Text has a nice selectable='false' propertie, but TextAre hasn't. Very, very strange.
    Dronius Guest

  2. Similar Questions and Discussions

    1. Disable swf
      It sounds to me as though you've loaded a movie into level2. If that's the case then in the frame where you want to get rid of the movie (frame 2...
    2. Disable ESC key?
      I have a problem. When I create a projector in Director, the ESC key automatically and immediately exits the game. I solved this problem with the...
    3. Slow Text Import / Copy and Past in Freehand MX Mac
      populationman wrote: Yes, I've seen that. It seems that FHMX can't interpret the word-processing code. This method works for me. Highlight...
    4. How to disable F8...
      You don't want to do that... If there are problems, you can't run safe mode anymore. If problems like this occur, then you need to reinstall...
    5. Disable help key ?
      In article <SaltyJack-41D36F.16252820062003@news.mpls.visi.com>, SaltyJack <SaltyJack@nospam.com> wrote: } I finally upgraded my OS X to the...
  3. #2

    Default Re: How to disable copy/past (selectable='disable') fromTextArea

    Would enabled="false" work for you?

    Why not use mx:Text?

    Tracy
    ntsiii Guest

  4. #3

    Default Re: How to disable copy/past (selectable='disable') fromTextArea

    Thanx Tracy, but...

    yeah, enabled="false" - blocks ALL user input: insert text capability,
    copy/past capability etc AND... ScrollBars, ohhh Lord!!!!

    I need "textComponet" with scrollBars, with borders, with multiline, with
    wordWrap, with html support and WITHOUT insert/copy/past capability.

    Text does not support scrollBars - it's important for me.

    Dronius Guest

  5. #4

    Default Re: How to disable copy/past (selectable='disable') fromTextArea

    That's easy

    <mx:TextArea id='myTextArea' initialize='myTextArea.label.selectable=false'/>

    -Bruce
    bdeen Guest

  6. #5

    Default Re: How to disable copy/past (selectable='disable') fromTextArea

    Wow! Great! It works!

    but i don't understand how :) there is no 'label' propertie in TextArea
    component in official docs.
    where did you find it?? may be in some secret documents?? :) i guess some
    people got the MagicSecretFULLtFlexDocumentation :) :) :)

    Dronius Guest

  7. #6

    Default Re: How to disable copy/past (selectable='disable') fromTextArea

    I wish i could say I was all knowing, but all I did was go to your install
    directory for Flex 1.5, go to resources open up FlexforFlash.zip and go into
    the Flex classes and work your way down to where the TextARea should be.
    Some things aren't there due to the fact that they are just a different
    configuration of what they extend, so sometimes you have to work your way up
    the inheritance tree. -Bruce

    bdeen Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139