                         duration = Math.max(duration, keyframes[j].time);
 
         }
+        if (addWidthMP)
+            motionPaths.push(new SimpleMotionPath("width"));
+        if (addHeightMP)
+            motionPaths.push(new SimpleMotionPath("height"));
 
         animation = new Animation(duration);
         animation.animationTarget = this;


    private function animationCleanup():void
    {
        if (disableLayout)
        {
            reenableConstraints();
            setupParentLayout(true);
        }
    }
    

    private var oldWidth:Number;
    private var oldHeight:Number;

    /**
     * @private
     * Used to selectively disable constraints that are being animated by
     * their underlying values because the constraint values are not
     * valid in both states of a transition. For example, if left is set
     * in only one state, then we disable left and animate x instead,
     * re-enabling left when the effect is finished.
     */
    private var disabledConstraintsMap:Object;

    //--------------------------------------------------------------------------
    //
    // Properties
