I have this function:
[FONT=monospace]
[/FONT]
function loadThumbs() {
var thumbX = 30;
var thumbsArray:Array = [];
for (i=0; i<image.length; i++) {
this.createEmptyMovieClip('thumbholder'+i, i);
this['thumbholder'+i].loadMovie('images/thumbs/'+image*+'.jpg', 1);
this['thumbholder'+i]._x = thumbX;
this['thumbholder'+i]._y = 207;
this['thumbholder'+i].onRelease = function(){
trace('Click');
};
thumbX = thumbX+90;
};
};
Everything in this code block works the way I want it to, except the onRelease. It creates the movieclips fine, loads the images fine, spaces them horizontally fine, but doesn’t create the onRelease!
Does anyone know of any issues related to using dynamic referencing in this manner?
Thanks for any help, it’s safe to say this is driving me mad!
Jamie