OOP concepts - buttons
I am kind of new to OOP, but I understand the basics. In AS3, what I am trying to achieve is basically an interface with numbers and buttons. In the Main class I will have a Timer running. Each of the buttons has an image, a cooldown timer and an action.
Can someone point me in the right direction on how to this? I mean, how can I have Button.as to have a specific function in the Main class? Also, how can I assign a cooldown to each instance of Button.as and make them stop each time the Main.as timer stops?
Thank you all in advance!