# How to set a variable and then on release go to "variable"?

**URL:** <https://forum.kirupa.com/t/how-to-set-a-variable-and-then-on-release-go-to-variable/210817>\
**Category:** Uncategorized\
**Created:** [December 22, 2006, 1:01pm UTC](https://forum.kirupa.com/t/how-to-set-a-variable-and-then-on-release-go-to-variable/210817 "2006-12-22T13:01:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alapimba](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@alapimba](https://forum.kirupa.com/u/alapimba)\
**Post date:** [December 22, 2006, 1:01pm UTC](https://forum.kirupa.com/t/how-to-set-a-variable-and-then-on-release-go-to-variable/210817/1 "2006-12-22T13:01:29Z")

</div>

Hello

What i want to do i guess it’s very simple and i once did it but don’t remeber in which site so i can’t go check and copy :S

What i want is… i have 3 buttons… i want them to on release set a variable… let’s say bt1 bt2 bt3.

And then i want to make and action of gotoAndPlay (the variable i set before)

Anyone to help me?  
Thanks
