Scale to width or height

snipped by jspooner

Scales a display object.

var newWidth:Number  = (theVideoWidth * _registrationHeight / theVideoHeight);
				var newHeight:Number = (theVideoHeight * _registrationWidth / theVideoWidth);
				if (newHeight < _registrationHeight) {
					super.width = _registrationWidth;
					super.height = newHeight;
				} else if (newWidth < _registrationWidth) {
					super.width = newWidth;
					super.height = _registrationHeight;
				} else {
					super.width = _registrationWidth;
					super.height = _registrationHeight;
				}