Bind data entered in a TextInput control to a data model : TextInput Data Binding « Components « Flex
- Flex
- Components
- TextInput Data Binding
Bind data entered in a TextInput control to a data model

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Model id="userInfo">
<phoneInfo>
<phoneNum>{phoneInput.text}</phoneNum>
</phoneInfo>
</mx:Model>
<mx:TextInput id="phoneInput" />
<mx:TextInput id="zipCodeInput" />
</mx:Application>
Related examples in the same category