 				var width	: Number	= Math.min(2048, _width);
 				var height	: Number	= Math.min(2048, _height);
 				
-				_stage3d.x = origin.x;
-				_stage3d.y = origin.y;
+				_stageX = _stageX;
+				_stageY = _stageY;
+				
+				_stage3d.x = _stageX;
+				_stage3d.y = _stageY;
 				
 				updateMask();
 				

			}
		}
		
		private function updateMask() : void
		{
			var numChildren : int = stage.numChildren;

		
		private var _width				: Number					= 0.;
		private var _height				: Number					= 0.;
		private var _stageX				: Number					= 0.;
		private var _stageY				: Number					= 0.;
		private var _autoResize			: Boolean					= false;
		private var _antiAliasing		: int						= 0;
		
