     drawDashLine(target:Graphics, fromX:Number, fromY:Number,
                  toX:Number, toY:Number, dashIntervals:Array):void
     {
-        var dx:Number;
-        var dy:Number;
-        var ux:Number;
-        var uy:Number;
-        var cx:Number;
-        var cy:Number;
-        var lineDistance:Number;
+        var deltaX:Number, deltaY:Number,
+            unitX:Number, unitY:Number,
+            currentX:Number, currentY:Number,
+            lineDistance:Number;
+
         var sumDistance:Number = 0;
-        var dash:int = 0;
+
+        var dashIndex:int = 0;
 
         if (!dashIntervals || dashIntervals.length < 2)
         {

            radius:Number, startAngle:Number, endAngle:Number,
            drawRadius:Boolean = false, steps:Number = 6):void
    {
        var halfStepAngle:Number;
        var secant:Number;

        var currentAngle:Number;
        var secantAngle:Number;
        var nextAngle:Number;

        var i:int;


            target.lineTo(toX, toY);
            return;
        }
        deltaX = toX - fromX;
        deltaY = toY - fromY;
        lineDistance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);
        unitX = deltaX / lineDistance;
        unitY = deltaY / lineDistance;
        currentX = fromX;
        currentY = fromY;
        target.moveTo(currentX, currentY);
        while (sumDistance < lineDistance)
        {
            sumDistance += dashIntervals[dashIndex];
            if (sumDistance < lineDistance)
            {
                currentX += dashIntervals[dashIndex] * unitX;
                currentY += dashIntervals[dashIndex] * unitY;
            }
            else
            {
                currentX = toX;
                currentY = toY;
            }
            if (dashIndex & 1)
            {
                target.moveTo(currentX, currentY);
            }
            else
            {
                target.lineTo(currentX, currentY);
            }
            dashIndex++;
            if (dashIndex >= dashIntervals.length)
            {
                dashIndex = 0;
            }
        }
    }
