Show an MXML-based data model with properties of TextInput controls bound into its fields : TextInput Data « Components « Flex






Show an MXML-based data model with properties of TextInput controls bound into its fields

Show an MXML-based data model with properties of TextInput controls bound into its fields
          
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Model id="reg">
    <registration>
      <name>{nme.text}</name>
      <email>{email.text}</email>
      <phone>{phone.text}</phone>
      <zip>{zip.text}</zip>
      <ssn>{ssn.text}</ssn>
    </registration>
  </mx:Model>
  <mx:TextInput id="nme" />
  <mx:TextInput id="email" />
  <mx:TextInput id="phone" />
  <mx:TextInput id="zip" />
  <mx:TextInput id="ssn" />
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Using actionscript to access TextInput data in TextUsing actionscript to access TextInput data in Text
2.Use TextInput as the Credit card number data sourceUse TextInput as the Credit card number data source
3.A TextInput's text property is bound to two data models, and data model properties are bound to the text properties of two Label controls.A TextInput's text property is bound to two data models, and data model properties are bound to the text properties of two Label controls.
4.shows an MXML-based data model with properties of TextInput controls bound into its fields:shows an MXML-based data model with properties of TextInput controls bound into its fields:
5.Max char and restrict letter for TextInputMax char and restrict letter for TextInput
6.Restrict input letter for TextInputRestrict input letter for TextInput
7.Add item to a list from TextInputAdd item to a list from TextInput