Simple Classes Question

Hi … Im just getting in to start using classes …
I have a very simple question::

So if I create a rollOver and rollOff class package - to change the alpha value of some buttons …

how do ‘connect’ them to my buttons?? … if I was simply hard-coding them in I would::


But this will be tedious with 10 buttons for the on and off states!

Great – simple it must be … thanks for help …/