Skip to main content
June 15, 2009
Question

How to work with editable and maxchar properties

  • June 15, 2009
  • 1 reply
  • 595 views

Hi,

Just like we can make any TextArea as,

textArea.editable = false;

textArea.maxchar = 20;

Can we do this with the text layout control.

Regards,

Rajesh

This topic has been closed for replies.

1 reply

Adobe Employee
June 21, 2009

Yes, you can. The easiest, if you are using Flex 4, is to use one of the new sprite components, such as the RichEditableText which I think has versions of these properties. If you are trying to do it on your own component (i.e., you aren't using Flex) you might benefit by looking at the code for Flex where these properties are implemented as a guide to how you could it yourself using TLF directly.