Problem with identify

i created a strip of thumbnails in MC:


function BuildMenu() {
 for (i=0; i<=35; i++) {
  this.targetClip.attachMovie("frame", "frame"+i, i);
  targetClip["frame"+i]._x = 103*i;
  targetClip["frame"+i].loadMovie("thumbnails/an"+i+".jpg");
  targetClip["frame"+i].id = i;
   }
 
}

now i need to recognize each MC in order to enlarge it so i added an onRelease function like this:

function BuildMenu() {
 for (i=0; i<=35; i++) {
  this.targetClip.attachMovie("frame", "frame"+i, i);
  targetClip["frame"+i]._x = 103*i;
  targetClip["frame"+i].loadMovie("thumbnails/an"+i+".jpg");
  targetClip["frame"+i].id = i;
  [COLOR=red]this.onRelease = function() {[/COLOR]
[COLOR=red]  myEnlargementFunction(this.id);[/COLOR]
[COLOR=red]   };[/COLOR]
 }
 
}

but this is not working, i dont know how to make the function recognize the id?
what ever i do i get undefined.
can any body help me please?

thank you