Binding a Text and TextInput : TextInput Data Binding « Components « Flex
- Flex
- Components
- TextInput Data Binding
Binding a Text and TextInput

<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:Binding source="nameInput.text" destination="nameOutput.text" />
<mx:Panel>
<mx:Label text="Enter name:" />
<mx:TextInput id="nameInput" maxChars="20" />
<mx:HRule width="100%" />
<mx:Label text="You've typed:" />
<mx:Text id="nameOutput" />
</mx:Panel>
</mx:Application>
Related examples in the same category