Using actionscript to access TextInput data in Text : TextInput Data « Components « Flex






Using actionscript to access TextInput data in Text

Using actionscript to access TextInput data in Text
          

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

    <mx:VBox>
      <mx:TextInput id="input" />
      <mx:Text id="output" text="{'User input: ' + input.text}" />
    </mx:VBox>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Use TextInput as the Credit card number data sourceUse TextInput as the Credit card number data source
2.Show an MXML-based data model with properties of TextInput controls bound into its fieldsShow an MXML-based data model with properties of TextInput controls bound into its fields
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