Hi Guys,

I don't know if this should be in the newbie forum. I certainly should be as I'm a 'total tard' when it comes to Actionscript - I've only recently taken the plunge

Here's my question - I hope you can help.

I am using the code below to change the colour of a movie clip and it works fine for a single movie clip:

myInstanceName.addEventListener(MouseEvent.ROLL_OV ER, colourOver);

function colourOver(e:Event){
var myInstanceName:MovieClip = e.target as MovieClip;
changeColor(myInstanceName, 0x999933);
}

The difficulty is I have 10 movie clips and I'd like to change the colour of whatever one I roll over. Is there a way to pass the instance name without explicitly stating it - so I can use the same function for all 10 movie clips?

I have no idea how to do this. I could write 10 functions but that makes me feel really dumb and I can't convert them to buttons.

Any help or suggestions would be great. Thanks guys and gals.