In short, I need to add text to my Flex application, and I don't want users to be able to copy. I was going to use a shortcut, but apparently the labels do not support text wrapping. Can I make it so that users cannot select text in a Text Text control?
Thank.
You can use the Text control and set the selectable property to false ...
<mx:Text width="175" selectable="false" text="This is an example of a multiline text string in a Text control." />
You can disable insertion of more than 1 character by capturing the textInput event:
private function onTextInput(e:flash.events.TextEvent):void { if (e.text.length > 1) e.preventDefault(); }
enabled "false", . disabledcolor .
print(" <mx:Text enabled="false" disabledColor="0x000000" text=Text"/> ");
Source: https://habr.com/ru/post/1697740/More articles:Can I use Soundex (or other SQL functions) in LinqToSql? - linq-to-sqlCan ScaleTransform create everything on canvas / grid except 1 control? - wpfHibernate.initialize () and second level cache - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1697738/how-to-draw-delphi-group-boxes-to-have-transparent-backgrounds&usg=ALkJrhjdHYjdkLPguQ11KYodtAyN6RtPGAHelp someone new in C # variables - variablesSpecify the remote port to use via mail through exim4 - debianКак использовать ResourceBundle, чтобы избежать жестких конфигурационных путей в Java-приложениях? - javaCan I test a floppy disk using the WMI namespace and System.Management? - .netPriority of C ++ operators "&" and "->" - c ++What does $ hash {$ key} doAll Articles