Event Flex



    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    initialize="initWatcher();">
    
        
    

    
         
            import mx.binding.utils.*; 
            import mx.events.FlexEvent; 
            import mx.events.PropertyChangeEvent; 
            public var myWatcher:ChangeWatcher; 
            // Define binding watcher. 
            public function initWatcher():void { 
                // Define a watcher for the text binding. 
                ChangeWatcher.watch(textarea, "text", watcherListener); 
            } 
            // Event listener when binding occurs. 
            public function watcherListener(event:Event):void { 
                myTA1.text="binding occurred"; 
                // Use myWatcher.unwatch() to remove the watcher. 
            }