initial commit
[CPE_learningsite] / CPEFlex / EngagementPod / src / com / effects / AnimateColor.as
1 package com.effects
2 {
3         
4         import mx.effects.AnimateProperty;
5         import com.effects.effectClasses.AnimateColorInstance;
6         import mx.effects.IEffectInstance;    
7         
8         /**
9          * 
10          */
11         public class AnimateColor extends AnimateProperty
12         {
13                 
14                 /**
15                  * Constructor
16                  *
17                  * @param target The Object to animate with this effect.
18                  */
19                 public function AnimateColor(target:Object = null)
20                 {
21                         super(target);
22                         
23                         instanceClass = AnimateColorInstance;
24                 }
25                 
26                 /**
27                  * @private
28                  */
29                 override protected function initInstance( instance:IEffectInstance ):void
30                 {
31                         super.initInstance( instance );
32                         
33                         var animateColorInstance:AnimateColorInstance = AnimateColorInstance( instance );
34                         
35                         animateColorInstance.fromValue = fromValue;
36                         animateColorInstance.toValue = toValue;
37                         animateColorInstance.property = property;
38                         animateColorInstance.isStyle = isStyle;
39                         animateColorInstance.roundValue = roundValue;
40                 }
41                 
42         } // end class    
43 } // end package