# AS3 quick code snippet needed

**URL:** <https://forum.kirupa.com/t/as3-quick-code-snippet-needed/251287>\
**Category:** flash\
**Created:** [February 6, 2008, 10:21pm UTC](https://forum.kirupa.com/t/as3-quick-code-snippet-needed/251287 "2008-02-06T22:21:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Syous](https://forum.kirupa.com/u/Syous)\
**Post date:** [February 6, 2008, 10:21pm UTC](https://forum.kirupa.com/t/as3-quick-code-snippet-needed/251287/1 "2008-02-06T22:21:03Z")

</div>

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

I basically need

```auto
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.

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

-----

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

```
