4 import mx.effects.AnimateProperty;
5 import com.effects.effectClasses.AnimateColorInstance;
6 import mx.effects.IEffectInstance;
11 public class AnimateColor extends AnimateProperty
17 * @param target The Object to animate with this effect.
19 public function AnimateColor(target:Object = null)
23 instanceClass = AnimateColorInstance;
29 override protected function initInstance( instance:IEffectInstance ):void
31 super.initInstance( instance );
33 var animateColorInstance:AnimateColorInstance = AnimateColorInstance( instance );
35 animateColorInstance.fromValue = fromValue;
36 animateColorInstance.toValue = toValue;
37 animateColorInstance.property = property;
38 animateColorInstance.isStyle = isStyle;
39 animateColorInstance.roundValue = roundValue;