# Add OnrollOut function in a button

**URL:** <https://forum.kirupa.com/t/add-onrollout-function-in-a-button/208053>\
**Category:** Uncategorized\
**Created:** [November 24, 2006, 10:49am UTC](https://forum.kirupa.com/t/add-onrollout-function-in-a-button/208053 "2006-11-24T10:49:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimebagplan](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Dimebagplan](https://forum.kirupa.com/u/Dimebagplan)\
**Post date:** [November 24, 2006, 10:49am UTC](https://forum.kirupa.com/t/add-onrollout-function-in-a-button/208053/1 "2006-11-24T10:49:19Z")

</div>

Hi all,  
i have created a 5th frame inside a button (with a movie clip in it) for my OnRollOut function.

But i dont know where to put the action script for read my 5th frame when my mouth roll out the button.

my action script look like.

on (rollout) {  
gotoandplay (5) ; \<— “for the 5th frame”  
}

but i doesnt play my mc animation.  
Thanks for any helps.
