 
     private function animationCleanup():void
     {
-        if (disableConstraints)
+        if (disableLayout)
+        {
             reenableConstraints();
-        if (disableLayout)
             setupParentLayout(true);
+        }
     }
     
     /**

                MotionPath(motionPaths[i]);
            // set the first value (if invalid) to the current value
            // in the target
            var keyframes:Array = motionPath.keyframes;
            if (!keyframes || keyframes.length == 0)
                continue;
            if (!isValidValue(keyframes[0].value))

import mx.resources.ResourceManager;
import mx.styles.IStyleClient;

import spark.effects.animation.Animation;
import spark.effects.animation.IAnimationTarget;
import spark.effects.animation.Keyframe;
import spark.effects.animation.MotionPath;
import spark.effects.animation.SimpleMotionPath;
import spark.effects.easing.IEaser;
import spark.effects.interpolation.IInterpolator;
import spark.primitives.supportClasses.GraphicElement;
