  	 */
  	private function nativeWindow_deactivateHandler(event:Event):void
  	{
- 		dispatchEvent(new AIREvent(AIREvent.APPLICATION_DEACTIVATE));
+ 		dispatchEvent(new AIREvent(AIREvent.WINDOW_DEACTIVATE));
  	}
  	
     /**

/**
 *  Dispatched after this application window has been activated.
 *
 *  @eventType mx.events.AIREvent.WINDOW_DEACTIVATE
 */
[Event(name="windowActivate", type="mx.events.AIREvent")]


        // 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.WINDOW_ACTIVATE));
                        
        systemManager.stage.nativeWindow.addEventListener(
            "activate", nativeWindow_activateHandler, false, 0, true);
