 		 *   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 { return _stageHeight; }
+		public function get stageHeight ():int
+		{ 
+			if (SpriteFlexjs.autoSize) _stageHeight = window.innerHeight;
+			return _stageHeight; 
+		}
 		public function set stageHeight (value:int):void { _stageHeight = value; }
 
 		/**

			_stage3Ds[2].__stage = this;
			_stage3Ds[3].__stage = this;
			
			window.addEventListener("resize", window_resize, false);
			window.addEventListener("orientationchange", window_resize, false);
			setTimeout(__update);

		 *   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 
		{ 
			if (SpriteFlexjs.autoSize) _stageWidth = window.innerWidth;
			return _stageWidth; 
		}
		public function set stageWidth (value:int):void { _stageWidth = value; }

		/**
