 		// but that's not what TextField does.
 		if (value == null)
 		{
-			throw new TypeError("Parameter text must be non-null.");
+			var message:String = getErrorMessage("nullParameter", "text");
+			throw new TypeError(message);
 		}
 		
 		// Note: We don't return early if value == _htmlText

			value != TextFieldAutoSize.CENTER &&
			value != TextFieldAutoSize.RIGHT)
		{
			throw new ArgumentError("Parameter autoSize must be one of the accepted values.");
		}
		
		if (value == autoSize)

	/**
	 *  @private
	 */
	private function testFlag(mask:uint):Boolean
	{
		return (flags & mask) != 0;
