You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Editable text on a single line.

Set text to display

Set the text in MXML:

<js:TextInput text="Hello, FlexJS!"/>

Listen to events

Listen for changes to the text, such as when there is keyboard input:

<js:TextInput id="input" change="onChange(event)"/>
<fx:Script>
<![CDATA[
       private function onChange(event:Event):void
{
trace("change:", input.text);
}
]]>
</fx:Script>
  • No labels