Mega Code Archive

 
Categories / Flex / Components
 

Model with data binding to TextInput

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Model id="contact">         <info>             <homePhone>{homePhoneInput.text}</homePhone>             <cellPhone>{cellPhoneInput.text}</cellPhone>             <email>{emailInput.text}</email>         </info>     </mx:Model>     <mx:Panel title="My Application" paddingTop="10" paddingBottom="10"         paddingLeft="10" paddingRight="10">         <mx:TextInput id="homePhoneInput" text="invalid phone number." />         <mx:TextInput id="cellPhoneInput" text="(999)999-999" />         <mx:TextInput id="emailInput" text="me@s.net" />     </mx:Panel> </mx:Application>