Button:convert AS2 script to AS3

hi all

I have this animated button in AS2 and I was wondering how to convert to
AS3 can anyone help?

I have a movieclip, with AS2 script, rollover go to and play frame x, this is the script

on (rollOver) {
 on (rollOut) {

can any help convert this so it works in AS3, I have attached an example of the AS2 script button

many thanks:emb: