 
     /**
      * Handles the end event from the animation. The value here is an Array of
-     * values, one for each 'property' in our propertyValuesList.
+     * values, one for each 'property' in our animationProperties.
      * If you override this method, ensure that you call the super method.
      */
     protected function endHandler(event:AnimationEvent):void

        var anim:Animation = Animation(event.target);
        if (finalizeValues())
        {
            var holder:PropertyValuesHolder;
            // Some of the values were updated; must now update
            // the respective values in the Animation
            if (propertyValuesList.length == 1)
            {
                holder = PropertyValuesHolder(propertyValuesList[0]);
                if (anim.startValue === null)
                    anim.startValue = holder.values[0];
                if (anim.endValue === null)
                    anim.endValue = holder.values[1];
            }
            else
            {
                var startValues:Array = anim.startValue as Array;
                var endValues:Array = anim.endValue as Array;
                for (var i:int = 0; i < propertyValuesList.length; ++i)
                {
                    holder = PropertyValuesHolder(propertyValuesList[i]);
                    if (startValues[i] === null)
                        startValues[i] = holder.values[0];
                    if (endValues[i] === null)
                        endValues[i] = holder.values[1];
                }
            }
        }

            return;
        }
            
        isStyleMap = new Array(animationProperties.length);
        
        // These two temporary arrays will hold the values passed into the
        // Animation to be interpolated between during the animation. The order
        // of the values in these arrays must match the order of the property
        // names in the animationProperties array, as we will assume during update
        // events that the interpolated values in the array are in that same order.
        var fromVals:Array = [];
        var toVals:Array = [];
        for (var i:int = 0; i < animationProperties.length; ++i)
        {
            var holder:AnimationProperty = AnimationProperty(animationProperties[i]);
            var property:String = holder.property;
            var fromValue:Object = null;
            var toValue:Object = null;
            
