Monday, May 7, 2012

[Action Script] OOP concepts - buttons May,2012

Hello,

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?

Any ideas?

Thank you all in advance!
OOP concepts - buttons

Related Post



0 comments: