Dynamic event handler problem?

HEllo-

I am creating a photo gallery… I load all the thumbnail images dynamically into an empty movieClip which is attached to a movie clip called “thumbs” from the library. all is working, except the onRelease method for each thumbnail mc is not triggering. here is the code- thanks for your wisdom!

//loadThumbs();
for (i = 1; i < 17; i++) {
var t = “thumb” + i;
thumbs.attachMovie(“image”, t, i);
thumbs[t]._x = 85*(i-1);
thumbs[t].loadMovie(this.pathToThumbs + this.tArray*, i);
thumbs[t].onRelease = function() {
thumbnail(this);
trace(this);
};
}