             // If all panels have finished their "hide children" effect,
             // then it's time to start our Resize effect.
             if (--numHideEffectsPlaying == 0)
-                tween.resume();     
+                animation.resume();     
         } 
     }
     

     * 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(value:Object):void
    {
        super.endHandler(value);

        restorePanelChildren();
    }

import flash.events.Event;

import flex.component.Panel;
import flex.effects.Animation;
import flex.effects.PropertyValuesHolder;
import flex.graphics.IGraphicElement;

