Attaching code to multiple buttons cleanly

Hey all,

Hopefully an easy one.

I have a series of buttons, and I want the same code applied to them all, to handle rollover states etc… Normally I’d do this useing registerClass, but in this case the buttons are added to the stage manually so I can’t.

I could do somehting like this:

 home_btn.onRelease = news_btn.onRelease = about_btn.onRelease = function() {
    // do something
}

But that seems very messy, and I have about 10 buttons, and multiple states.

Any suggestions?

Thanks.