             var hd:HitData = new HitData(createDataID(minItem.index),Math.sqrt(minDist2),minItem.x,minItem.y,minItem);
 
             var istroke:IStroke = getStyle("lineStroke");
-            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 = LinearGradientStroke(istroke);

                var hd:HitData = new HitData(createDataID(v.index),Math.sqrt(0),v.x,v.y,v);

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

        var fillStroke:IStroke = getStyle("lineStroke");
        var color:Number;

        if (fillStroke is SolidColorStroke)
        {
            color = SolidColorStroke(fillStroke).color;
        }
        else if (fillStroke is LinearGradientStroke)
        {
