# AS - tell button what state to be in

**URL:** <https://forum.kirupa.com/t/as-tell-button-what-state-to-be-in/233386>\
**Category:** flash\
**Created:** [July 23, 2007, 4:41pm UTC](https://forum.kirupa.com/t/as-tell-button-what-state-to-be-in/233386 "2007-07-23T16:41:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bardic/32/3708_2.png) [@bardic](https://forum.kirupa.com/u/bardic)\
**Post date:** [July 23, 2007, 4:41pm UTC](https://forum.kirupa.com/t/as-tell-button-what-state-to-be-in/233386/1 "2007-07-23T16:41:42Z")

</div>

Hey,  
Easy little problem for anyone that has done this before. Got a button with a gotoAndStop. When it gets to that frame I want to have a little bit o’ script there to tell it to remain in that buttons over state.

Should be simple, but I never did it with a button. I normally use MCs. Anyone know the syntax for it?
