yxo_f.onLoadInit = function(tm) { for (i=0; i<thumb_kolvo; i++) { tm.id = i; tm.onRelease = function() { trace(this.id); }; } };