Binding 2 way between Form TextInput fields : TextInput Data Binding « Components « Flex
- Flex
- Components
- TextInput Data Binding
Binding 2 way between Form TextInput fields

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF">
<mx:Binding source="bindFrom.text" destination="bindTo.text" />
<mx:Binding source="bindTo.text" destination="bindFrom.text" />
<mx:Panel title="Simple Binding Example" width="300" height="150">
<mx:Form>
<mx:FormItem label="Bind From">
<mx:TextInput id="bindFrom"/>
</mx:FormItem>
<mx:FormItem label="Bind To">
<mx:TextInput id="bindTo"/>
</mx:FormItem>
</mx:Form>
</mx:Panel>
</mx:Application>
Related examples in the same category