      */
     override protected function initInstance(instance:IEffectInstance):void
     {
-        if(affectLayout)
+        if (!applyChangesPostLayout)
         {
             addMotionPath("rotationZ", angleFrom, angleTo, angleBy);
         }


package spark.effects
{
import mx.effects.IEffectInstance;

import spark.effects.animation.MotionPath;
import spark.effects.supportClasses.AnimateTransformInstance;
    
/**
 *  The Rotate effect rotates a target object
 *  in the x, y plane around the transform center. 

     */
    public var angleBy:Number;
            
    //--------------------------------------------------------------------------
    //
    //  Overridden methods
