viena varianta sugalvojau , tai funkcijas aprashyt funkcijoj :? function parentFunction(numm:Number) { switch(numm) { case 0; callMe(); break; case 1: .... brea; } } function callMe() { textField.text = "lawl"; } for (i = 0; i < butnumber; i++) { this['botton'+i].fnumber = i; this['botton'+i].onRelease = function() { _root.parentFunction(this.fnumber); } } gal yra dar geresniu variantu ?