Hello all!
I have a hundred buttons on the screen. I also have an array containing a list of all 100 buttons.
Now, I want to use the same onRollOver method for every button. I DON’T want to program each button separately.
I am thinking something along these lines:
myArray = new Array
myArray[0] = button1
myArray[1] = button2
myArray[2] = button3 etc up to myArray[99] = button100
then:
allButtons = myArray[index]
allButtons.onRollOver = function() {
myonRollOverFunction(); };
Can I do this using an array? I’ve tried, but I don’t know arrays well enough to figure it out.
God bless you if you can help me!
-Brother Gabriel-Marie