12. Text Area & Text Input Components
The Text Area and Text Input components are roughly equivalent to the
single line and multiple line Input Text Fields. We've used the Text Area
component in a couple of the examples in this tutorial and there really
isn't much more to it apart from what we've made it do there (unless you
want to use it with databinding).
The important thing to remember is that you get a free scrollbar with
the Text Area component, so you may want to use it in place of a multiple
line Input Text Field unless you enjoy hacking into the component architecture
to use the Scrollbar Component hidden there (unfortunately, Macromedia
did not release a standalone Scrollbar Component like the excellent auto-snapping
one that exists in Flash MX.) The only other thing to note is that both
the Text Area and the Text Input components broadcast change events when
their content changes. You should, by now, know how to handle this event
if you need to.
|