Bind with BindingUtils.bindSetter : BindingUtils « Data Model « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Data Model » BindingUtilsScreenshots 
Bind with BindingUtils.bindSetter
Bind with BindingUtils.bindSetter
         
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="initHandler();">
       <mx:Script>
           
                  import mx.binding.utils.ChangeWatcher;
                  import mx.binding.utils.BindingUtils;

                  private var myChangeWatcher:ChangeWatcher;

                  private function initHandler():void
                  {
                       myChangeWatcher = BindingUtils.bindSetterinvalidateName, nameInput, "text" );
                  }
                  private function invalidateNamearg:* ):void
                  {
                          nameField.text = nameInput.text;
                  }
      
    </mx:Script>

    <mx:Panel title="User Entry.">
         <mx:TextInput id="nameInput" />
         <mx:Text id="nameField" />
    </mx:Panel>

</mx:Application>

   
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Use BindingUtils to bind propertyUse BindingUtils to bind property
2.Data Binding Through the ActionScript BindingUtils ClassData Binding Through the ActionScript BindingUtils Class
3.Bind Model with BindingUtils.bindPropertyBind Model with BindingUtils.bindProperty
4.Bind Setter using setter methodBind Setter using setter method
ww__w___.__j_a__v__a2___s__.___c___om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.