 
 import mx.effects.PropertyValuesHolder;
 import mx.events.AnimationEvent;
-
-import mx.core.mx_internal;
-import mx.effects.EffectManager;
-import mx.styles.IStyleClient;
 
 //  Let (phi) be angle between r=(Ox,Oy - Cx,Cy) and -X Axis.
 //   (theta) be clockwise further angle of rotation.

        
        if (isNaN(angleTo))
        {
            angleTo = (target.rotation == 0) ?
                      ((angleFrom > 180) ? 360 : 0) :
                      getCurrentValue("rotation");
            if (isNaN(angleBy) &&
                propertyChanges &&
                propertyChanges.end["rotation"] !== undefined)

        
        originalOffsetX = originX * Math.cos(radVal) - originY * Math.sin(radVal);
        originalOffsetY = originX * Math.sin(radVal) + originY * Math.cos(radVal);

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

