 
 import flash.display.Graphics;
 import flash.display.GraphicsPath;
-import flash.display.LineScaleMode;
 import flash.display.Shape;
 import flash.geom.Matrix;
 import flash.geom.Point;
 import flash.geom.Rectangle;
 
+import mx.core.mx_internal;
 import mx.utils.MatrixUtil;
-import mx.core.mx_internal;
-import spark.primitives.pathSegments.LineSegment;
-import spark.primitives.supportClasses.FilledElement;
+
 import spark.primitives.pathSegments.CloseSegment;
 import spark.primitives.pathSegments.CubicBezierSegment;
+import spark.primitives.pathSegments.LineSegment;
 import spark.primitives.pathSegments.MoveSegment;
 import spark.primitives.pathSegments.PathSegment;
 import spark.primitives.pathSegments.QuadraticBezierSegment;
-
+import spark.primitives.supportClasses.FilledElement;
 
 
 use namespace mx_internal;

        var newSegments:Array = [];
        
        var identifier:String;
        var prevX:Number = 0;
        var prevY:Number = 0;
        var x:Number;
        var y:Number;
        var controlX:Number;

                    break;
                case "z":
                    newSegments.push(new CloseSegment());
                    x = lastMoveX;
                    y = lastMoveY;
                    break;
                
                default:
