Movieclip_onRollOver

Helo guru’s

i am trying onRollOver in movieclip.with this code
home.onRollOver = function() {
this.gotoAndPlay(2);
};

when i give this code in keyframe its working but when i select movieclip than press F9
give this code in action panel but its not working
so what is the problem plese any one help me

sidhu>G