 import flash.events.Event;
 
 import mx.effects.Animation;
-import mx.effects.PropertyValuesHolder;
+import mx.effects.AnimationProperty;
 import mx.events.AnimationEvent;
 
 import mx.components.FxApplication;


    /**
     * Handles the end event from the tween. The value here is an Array of
     * values, one for each 'property' in our propertyValuesList.
     */
    override protected function endHandler(event:AnimationEvent):void
    {

        // effects manually on the children themselves
        var childrenHiding:Boolean = false; // hidePanelChildren();

        animationProperties = 
            [new AnimationProperty("width", widthFrom, widthTo, widthBy),
             new AnimationProperty("height", heightFrom, heightTo, heightBy)];
                
        super.play();

