 	public function set direction(value:String):void
 	{
 		if (value != "ltr" && value != "rtl")
-			throw new ArgumentError("Parameter direction must be one of the accepted values.");
+		{
+			var message:String = getErrorMessage("badParameter", "direction");
+			throw new ArgumentError(message);
+		}
 		
 		if (value == _direction)
 			return;

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

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