Data Model Flex



    xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">
     
         
        import mx.controls.Alert; 
        // myDate is set to the current date and time. 
        [Bindable] 
        public var myDate:Date = new Date(); 
      
    

    
                    property="myDate" valid="Alert.show('Validation Succeeded!');" />