# A "gotoAndPlay() question

**URL:** <https://forum.kirupa.com/t/a-gotoandplay-question/43577>\
**Category:** Uncategorized\
**Created:** [February 24, 2004, 5:23am UTC](https://forum.kirupa.com/t/a-gotoandplay-question/43577 "2004-02-24T05:23:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyrotechnician](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pyrotechnician](https://forum.kirupa.com/u/pyrotechnician)\
**Post date:** [February 24, 2004, 5:23am UTC](https://forum.kirupa.com/t/a-gotoandplay-question/43577/1 "2004-02-24T05:23:20Z")

</div>

Can’t I use gotoAndPlay() with a variable?  
Ex:  
framenum = 15 ;  
.  
.  
.  
gotoAndPlay(framenum);

does this work?

I tried but someway it doesn’t work… Is there a way that I can use gotoandplay like this?

thanks for replies
