# gotoAndStop question

**URL:** <https://forum.kirupa.com/t/gotoandstop-question/4955>\
**Category:** flash\
**Created:** [August 26, 2002, 6:23pm UTC](https://forum.kirupa.com/t/gotoandstop-question/4955 "2002-08-26T18:23:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerium](https://avatars.discourse-cdn.com/v4/letter/z/85e7bf/32.png) [@zerium](https://forum.kirupa.com/u/zerium)\
**Post date:** [August 26, 2002, 6:23pm UTC](https://forum.kirupa.com/t/gotoandstop-question/4955/1 "2002-08-26T18:23:18Z")

</div>

can you assign a variable to the action:

gotoAndStop(“myVariable”);

is that possible or how would you get around it if it isnt?

-steve

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2002, 6:25pm UTC](https://forum.kirupa.com/t/gotoandstop-question/4955/2 "2002-08-26T18:25:17Z")

</div>

figured it out… if anyone is interested it looks like this:

myvar = “purple”;  
back.gotoAndStop(myvar);
