Hi all,
I have 30 buttons called thumb01 to thumb30.
I have created this functions so when hoover over and hoover out of the one of the buttons it changes colour.
I would like to use this for all my 30 buttons, but I dont want ot write the same code 30 times. Is there a way to for example to use wildcards so I can write thumbxx and adress all the buttons.
Much appriciated thanx.
var col:Color = new Color();
col.setTint(0xFFFFFF, 0.5);
set1_mc.thumb01_btn.addEventListener(MouseEvent.MOUSE_OVER,hooverOver);
function hooverOver(event:MouseEvent):void
{
set1_mc.thumb01_btn.transform.colorTransform = col;
}
set1_mc.thumb01_btn.addEventListener(MouseEvent.MOUSE_OUT,hooverOut);
function hooverOut(event:MouseEvent):void
{
set1_mc.thumb01_btn.transform.colorTransform= new ColorTransform()
}