 	 		nativeApplication.addEventListener(Event.DEACTIVATE, nativeApplication_deactivateHandler, false, 0, true);
 	 		nativeApplication.addEventListener(Event.NETWORK_CHANGE,
  				nativeApplication_networkChangeHandler, false, 0, true);
+ 			_nativeWindow.addEventListener("activate", nativeWindow_activateHandler, false, 0, true);
+            _nativeWindow.addEventListener("deactivate", nativeWindow_deactivateHandler, false, 0, true);
+            
  			addEventListener(Event.ENTER_FRAME, enterFrameHandler);
  			//debug
  			var x:Object = StyleManager.stylesRoot;

 		dispatchEvent(new AIREvent(AIREvent.APPLICATION_DEACTIVATE));
 	}

 	/**
 	 *  @private
 	 */

 *  @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.
