fgo = function() {trace(this.i)} total = 10; for (i=1; i<=total; i++) { this["mc"+i].btn.i = i; this["mc"+i].btn.onRelease = fgo }