# As3. Easy Variable on buttons

**URL:** <https://forum.kirupa.com/t/as3-easy-variable-on-buttons/258137>\
**Category:** flash\
**Created:** [April 21, 2008, 11:23am UTC](https://forum.kirupa.com/t/as3-easy-variable-on-buttons/258137 "2008-04-21T11:23:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![virigo](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@virigo](https://forum.kirupa.com/u/virigo)\
**Post date:** [April 21, 2008, 11:23am UTC](https://forum.kirupa.com/t/as3-easy-variable-on-buttons/258137/1 "2008-04-21T11:23:04Z")

</div>

Hello! (my first post)  
I was wondering if there by any chance was somebody on this forum who had the recipe for how I could make a button with variable. Like when i click it once, a movieclip goes to frame 2. and if i click the same button again. the movieclip goes back to frame 1.

:ch:

Thx!
