Class Functions

Hey People,

I have created a class called RButton which extends MovieClip.

I need to know how to define a function in this class to make the movieclip gotoAndStop on frame 2 when someone rolls over it.

I have placed an instance of RButton on the stage using:
attachMovie(“Rbutton”, ‘portfolio’, 100);

How do you do this?

Cheers!