 			return _instance;
 		}
 		
-		private function window_resize(e:Object):void
+		private function window_resize(e:Object = null):void
 		{
 			SpriteFlexjs.dirtyGraphics = true;
 			if (SpriteFlexjs.autoSize){

		 *   the Security.allowDomain() method or the Security.allowInsecureDomain() method.
		 *   For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
		 */
		public function get stageWidth ():int { return _stageWidth; }
		public function set stageWidth (value:int):void { _stageWidth = value; }

		/**

		 *   the Security.allowDomain() method or the Security.allowInsecureDomain() method.
		 *   For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
		 */
		public function get stageHeight ():int
		{ 
			if (SpriteFlexjs.autoSize) _stageHeight = window.innerHeight;
			return _stageHeight; 
		}
		public function set stageHeight (value:int):void { _stageHeight = value; }

		/**
