     {
         if (!affectedProperties)
         {
-            if (animationProperties)
+            if (motionPaths)
             {
-                affectedProperties = new Array(animationProperties.length);
-                for (var i:int = 0; i < animationProperties.length; ++i)
+                affectedProperties = new Array(motionPaths.length);
+                for (var i:int = 0; i < motionPaths.length; ++i)
                 {
-                    var effectHolder:MotionPath = MotionPath(animationProperties[i]);
+                    var effectHolder:MotionPath = MotionPath(motionPaths[i]);
                     affectedProperties[i] = effectHolder.property;
                 }
             }

     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public var interpolator:IInterpolator = null;

    /**
     * The behavior of a repeating effect (an effect
     * with <code>repeatCount</code> equal to either 0 or >1). This
     * value should be either <code>Animation.LOOP</code>, where the animation
     * will repeat in the same order each time, or <code>Animation.REVERSE</code>,
     * where the animation will reverse direction each iteration.
     * 
     * @default Animation.LOOP
     * @see spark.effects.animation.Animation#repeatBehavior
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public var repeatBehavior:String = Animation.LOOP;
    
    /**
     * This flag indicates whether the layout constraints (left, right, top,
     * and bottom) should be adjusted when the effect ends, based on where
     * the target has been positioned by the effect. This behavior can
     * be useful for effects that change the position or size of a component
     * during the course of running the effect, and when the desired result
     * is that the target object stays in the resulting position without
     * adjusting to the original constraints. For example, a Rotate effect
     * run on a target with left/top constraints might otherwise be moved
     * to the original constraint position, which has a different effect
     * than rotating around a specified rotation center. 
     * 
     * <p>The default value
     * is <code>false</code>, which means that the original constraints will
     * be obeyed. To adjust the constraints based on the effect result,
     * set this property to <code>true</code>.</p>
     * 
     * @default false
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public var adjustConstraints:Boolean = false;
    
    /**
     * This property indicates whether the effect should disable constraints on its
     * targets while the effect is running. If set to true, the effect

        
        var animateInstance:AnimateInstance = AnimateInstance(instance);

        animateInstance.addEventListener(EffectEvent.EFFECT_REPEAT, animationEventHandler);
        // Optimization: don't bother listening for update events if we don't have
        // any listeners for that event
        if (numUpdateListeners > 0)
            animateInstance.addEventListener(EffectEvent.EFFECT_UPDATE, animationEventHandler);

        if (easer)
            animateInstance.easer = easer;
