 			hd.dataTipFunction = formatDataTip;
 			
 			istroke = getStyle("stroke");
-			if (istroke is Stroke)
-			{
-				hd.contextColor = Stroke(istroke).color;
+			if (istroke is SolidColorStroke)
+			{
+				hd.contextColor = SolidColorStroke(istroke).color;
 			}
 			else if (istroke is LinearGradientStroke)
 			{

			var gb:LinearGradientStroke;
			
			istroke= getStyle("stroke");
			if (istroke is Stroke)
			{
				hd.contextColor = Stroke(istroke).color;
			}
			else if (istroke is LinearGradientStroke)
			{

				var gb:LinearGradientStroke;
			
				istroke= getStyle("stroke");
				if (istroke is SolidColorStroke)
				{
					hd.contextColor = SolidColorStroke(istroke).color;
				}
				else if (istroke is LinearGradientStroke)
				{
