Very dumb AS3 question...what happened to Rollovers?

Ok in as2 i would write it as:

rect1.onRollOver=function(){
…do something
}

how do I code this in AS3 now? I am finding it quite hard to adapt to this new code, as2 was easier i think

Jpixels