# Use variable in goto action

**URL:** <https://forum.kirupa.com/t/use-variable-in-goto-action/163486>\
**Category:** Uncategorized\
**Created:** [September 22, 2005, 6:04pm UTC](https://forum.kirupa.com/t/use-variable-in-goto-action/163486 "2005-09-22T18:04:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjm](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@rjm](https://forum.kirupa.com/u/rjm)\
**Post date:** [September 22, 2005, 6:04pm UTC](https://forum.kirupa.com/t/use-variable-in-goto-action/163486/1 "2005-09-22T18:04:33Z")

</div>

i have a variable declared in the root timeline.

var showlarge:String = “large\_mc”;

and Im trying to throw that variable into a gotoAndPlay action like this…

on(release){  
\_root.inner.showlarge.gotoAndPlay(1);  
}

for some reason this does not work and I am not sure why. Any help would be greatly appreciated.
