//transform color +500 is blown out to white, -500 is solid black, 0 is normal
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform=new ColorTransform();
colorTrans.redOffset = 100;
colorTrans.greenOffset = 100;
colorTrans.blueOffset = 100;
this.transform.colorTransform = colorTrans;
//this is how you can animate it
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform=new ColorTransform();
var colorTween:Tween = new Tween(myClip, "myColor", Strong.easeOut, myClip.myColor, 0, 1, true);
colorTween.onMotionChanged = function(){
colorTrans.redOffset = myClip.myColor;
colorTrans.greenOffset = myClip.myColor;
colorTrans.blueOffset = myClip.myColor;
myClip.transform.colorTransform = colorTrans;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment