function f () { trace ("Функция №" + this.i); } i = 0; for (var i = 0; i < 10; i++) { _root["bt_" + i].onRelease = f; _root["bt_" + i].i = i; }