hey guys!i need your help. Right now my class looks something like this. But i want to refer to an individual array everytime i create a button. How do i achieve that?
This might explain it a bit more.
How many arrays though?
So you could pass the array in...
Btn = newButton collection: array1
In your constructor...
If you want to have an individual array per button you should use an instance variable. (like you have now for @width)
.....@width = 300@array = .....
You can then do:
button3 = new Buttonprint button3.array
button4 = new Buttonprint button4.array
Great! Thanks :)