Hi

I am trying to create a set of attached movieclips, which do something when they are clicked. Below is a snippet from my code. The below works if I take out the mc_this.onRelease() = function():Void handler. I need to know which clip was clicked from the handler/listener.

Can someone point me in the right direction of a good tutorial or give me a hint on this code please?

Code:
for(var j=0; j<6; j++)
{
	for(var i=0; i<7; i++)
	{
		var mc_this:MovieClip = this.attachMovie('cloneme', 'd' + dayNumber, this.getNextHighestDepth())
		mc_this._x = (i*_global.w);
		mc_this._y = (j*_global.h);
					
		mc_this.onRelease() = function():Void
		{
			trace("clicked on");
		}
	}
}
The above code is in a class which extends movieclip and I'm using Flash 8.

TIA