Data Model Flex


       
           
                  import mx.binding.utils.ChangeWatcher;
                  import mx.binding.utils.BindingUtils;
                  private var myChangeWatcher:ChangeWatcher;
                  private function initHandler():void
                  {
                       myChangeWatcher = BindingUtils.bindSetter( invalidateName, nameInput, "text" );
                  }
                  private function invalidateName( arg:* ):void
                  {
                          nameField.text = nameInput.text;
                  }