Hi, I have this code and im triying to make a simple RollOver. A mc in b/n by default and when the mouse is Over the mc, it turns in color.
Plz help me.
Thx.
import flash.filters.ColorMatrixFilter;
var byn_array:Array = [0.3, 0.59, 0.11, 0, 0,
0.3, 0.59, 0.11, 0, 0,
0.3, 0.59, 0.11, 0, 0,
0, 0, 0, 1, 0];
var colorFilter:ColorMatrixFilter = new ColorMatrixFilter(byn_array);
img_mc.onPress = function()
{
img_mc.filters = [colorFilter];
}
img_mc.onRelease = function()
{
img_mc.filters = undefined;
}