 					topLeft, topRight, bottomRight, bottomLeft, SIDE_BOTTOM);
 			}
 			
-			if (borderWidth.left > 0 && borderStyle.left != 'none' && borderColor.left != 0)
+			if (borderWidth.left > 0 && borderStyle.left != 'none' && borderColor.left)
 			{
 				topLeft.x = 0;
 				topLeft.y = 0;

			var topRight : Point = new Point();
			var bottomRight : Point = new Point();
			var bottomLeft : Point = new Point();
			if (borderWidth.top > 0 && borderStyle.top != 'none' && borderColor.top != 0)
			{
				topLeft.x = 0;
				topLeft.y = 0;

					topLeft, topRight, bottomRight, bottomLeft, SIDE_TOP);
			}
			
			if (borderWidth.right > 0 && borderStyle.right != 'none' && borderColor.right)
			{
				topLeft.x = m_width;
				topLeft.y = 0;
