 /**
  *  Dispatched after this application window has been activated.
  *
- *  @eventType mx.events.Event.ACTIVATE
- */
-[Event(name="windowActivate", type="flash.events.Event")]
+ *  @eventType mx.events.AIREvent.WINDOW_DEACTIVATE
+ */
+[Event(name="windowActivate", type="mx.events.AIREvent")]
 
 /**
  *  Dispatched after this application window has been deactivated.
  *
- *  @eventType mx.events.Event.DEACTIVATE
- */
-[Event(name="windowDeactivate", type="flash.events.Event")]
+ *  @eventType mx.events.AIREvent.WINDOW_DEACTIVATE
+ */
+[Event(name="windowDeactivate", type="mx.events.AIREvent")]
  
 /**
  *  Dispatched after this application window has been closed.

 	 */
 	private function nativeWindow_deactivateHandler(event:Event):void
 	{
 		dispatchEvent(new Event("windowDeactivate"));
 	}
 	
    /**

        // AIR xml file, we fabricate an activate event, since Flex 
        // comes in late to the show.
        if (systemManager.stage.nativeWindow.active) 
            dispatchEvent(new AIREvent(AIREvent.APPLICATION_ACTIVATE));
                        
        systemManager.stage.nativeWindow.addEventListener(
            "activate", nativeWindow_activateHandler, false, 0, true);
