AS3 quick code snippet needed

I’ve been looking but since I don’t really know my end result, it’s hard to search correctly.

I basically need

onRelease {
this.gotoAndPlay (2) 
}

converted to AS 3. I mildly understand classes / functions but just don’t know enough AS3 yet. Any help is appreciated.

This is my current code.

this.menuBox_mc.contact_btn.addEventListener(MouseEvent.MOUSE_DOWN,rotateImage);

-----

function rotateImage (e:MouseEvent) {
    _root.images.gotoAndPlay(2);
}