| Re: Color To Gray Action Script 2 by Pieter Helsen on Jul 7, 2008 at 7:19:09 am
Or use Tweener.
Using the ColorShortcuts you can easily tween an image from color to gray and back.
It would look something like this:
import caurina.transitions.Tweener;
import caurina.transitions.properties.ColorShortcuts;
ColorShortcuts.init();
toGray_btn.onRelease = function(){
Tweener.addTween(myImg_mc, {_saturation:0, time:1, transition:"linear"});
}
toColor_btn.onRelease = function(){
Tweener.addTween(myImg_mc, {_saturation:1, time:1, transition:"linear"});
}
Kind regards,
Pieter
Respond to this post Return to posts index | |