i changed the line
for (var ......etc.... so that it matched yours, and i still am having the exacat same problem

[i] isnt calling the instance names (on1,on2,on3,on4,on5) of each button....it always comes out as the number 5.

as to the second part, I had to keep it my way because I need the "var ON:MovieClip(getChildByName)" part because it enaables the EventListener to work on each button in the array. when I changed it to how you had it, my EventListener stopped working, because ON becomes undefined