tween gradual tint change plz help!
Hey,
Im trying to get a movieClip to change its tint on roll over and back to normal on roll out. But this has to happen gradually like a tween.
Im trying to use the code for alpha tween but its not exectly wut i need any ideas?
i also tried the tweenlite but im to confused :S
any help is much appriciated
here is my code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.motion.easing.Back;
var anim:Animation = new Animation ;
import fl.motion.Color;
//create a Color object
var c:Color=new Color();
//set the color of the tint and set the multiplier
//apply the tint to the colorTransform property of
//the desired MovieClip/DisplayObject
var alphaVAR:int;
addChild(anim);
anim.x = 250;
anim.y = 200;
anim.addEventListener(MouseEvent.MOUSE_OVER, mouse_Over);
anim.addEventListener(MouseEvent.MOUSE_OUT, mouse_Out);
function mouse_Over(event:MouseEvent):void
{
var myTweenAlpha:Tween = new Tween(anim,"alpha",Regular.easeOut,0,1,3,true);
}
function mouse_Out(event:MouseEvent):void
{
}
thx pavel