Unless someone has created this control for public use, you're going to have
to subclass the TextArea and create your own.  TextArea's use the
UITextField class to render text so take a look at
http://livedocs.adobe.com/flex/201/langref/flash/text/TextField.html.

I'd say the easiest way is this (all operations acting on the textField, not
the TextArea):
onKeyDown: cache the current data in htmlText.
onChange: measure the new text to see if it overflows the visible area of
the TextField.  If it does, reset the htmlText to the cached version, else
do nothing.
end of algorithm.

- Dan Freiman


On 10/15/07, Michael H. Ian <[EMAIL PROTECTED]> wrote:
>
>   Can I set the maximum amount of lines in an editable TextArea so that
> users can't type more than the size of the TextArea? I've already set
> the verticalScrollPolicy to "off", but users are still allowed to keep
> typing, it just doesn't create the scrollbar.
>
>  
>

Reply via email to