 package spark.effects.supportClasses
 {
 
-import spark.effects.AnimationProperty;
-import spark.events.AnimationEvent;
+import spark.effects.SimpleMotionPath;
+import spark.effects.animation.Animation;
 
 //  Let (phi) be angle between r=(Ox,Oy - Cx,Cy) and -X Axis.
 //   (theta) be clockwise further angle of rotation.

        if (Math.abs(newY - targetY) > 0.1)
            centerY = targetY + originalOffsetY;

        var rotateValue:Number = Number(event.animation.currentValue[0]);     
        var radVal:Number = Math.PI * rotateValue / 180;

        newX = centerX - originX * Math.cos(radVal) + originY * Math.sin(radVal);

        newX = Number((centerX - originalOffsetX).toFixed(1)); // use a precision of 1
        newY = Number((centerY - originalOffsetY).toFixed(1)); // use a precision of 1
 
        motionPaths = 
            [new SimpleMotionPath("rotation", angleFrom, angleTo, duration, angleBy)];

        super.play();
    }
