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