  		dispatchEvent(new AIREvent(AIREvent.APPLICATION_DEACTIVATE));
  	}
 
+ 	/**
+ 	 *  @private
+ 	 */
+ 	private function nativeWindow_activateHandler(event:Event):void
+ 	{
+ 		dispatchEvent(new Event("windowActivate"));
+ 	}	
+ 	
+ 	/**
+ 	 *  @private
+ 	 */
+ 	private function nativeWindow_deactivateHandler(event:Event):void
+ 	{
+ 		dispatchEvent(new Event("windowDeactivate"));
+ 	}
+ 	
  	/**
  	 *  @private
  	 */

    /**
     *  @private
     */
    private function window_resizeHandler(event:NativeWindowBoundsEvent):void
    {
        invalidateViewMetricsAndPadding();

 *  @eventType mx.events.AIREvent.APPLICATION_DEACTIVATE
 */
[Event(name="applicationDeactivate", type="mx.events.AIREvent")]

/**
 *  Dispatched after the window has been activated.
 *
 *  @eventType mx.events.Event.ACTIVATE
 */
[Event(name="windowActivate", type="flash.events.Event")]

/**
 *  Dispatched after the window has been deactivated.
 *
 *  @eventType mx.events.Event.DEACTIVATE
 */
[Event(name="windowDeactivate", type="flash.events.Event")]

/**
 *  Dispatched after the window has been closed.
 *
 *  @eventType flash.events.Event.CLOSE
 *
 *  @see flash.display.NativeWindow
 */
[Event(name="close", type="flash.events.Event")]

/**
 *  Dispatched before the window closes.
