Problem with button functionality in CS5

Hello,

I am trying to add a button from the library to the stage using code. It seems to work fine except that when I hover over the button it does not work like a button. I don’t get the over state of the button, I don’t get the hand cursor, things like that.

Any suggestions?