Код: Выделить всё
for(var i:Number=1;i<=5;i++) _root["votes"+i+"_btn"].enabled=true;
Код: Выделить всё
votes1_btn.onRelease=function(){ f_set_game(1); }votes2_btn.onRelease=function(){ f_set_game(2); }votes3_btn.onRelease=function(){ f_set_game(3); }votes4_btn.onRelease=function(){ f_set_game(4); }votes5_btn.onRelease=function(){ f_set_game(5); }
Как так сделать незнаю.
Кнопки уже сделал вот код их:
Код: Выделить всё
autostake1_btn.onRelease=function(){ f_set_game(1); }autostake2_btn.onRelease=function(){ f_set_game(2); }autostake3_btn.onRelease=function(){ f_set_game(3); }autostake4_btn.onRelease=function(){ f_set_game(4); }autostake5_btn.onRelease=function(){ f_set_game(5); }
Вот что я уже сделал немного:
Код: Выделить всё
for(var i:Number=1;i<=2;i++) _root["autostake"+i+"_btn"].enabled=true;