# \[FMX2004\] variables and paths

**URL:** <https://forum.kirupa.com/t/fmx2004-variables-and-paths/75025>\
**Category:** flash\
**Created:** [January 5, 2005, 8:15am UTC](https://forum.kirupa.com/t/fmx2004-variables-and-paths/75025 "2005-01-05T08:15:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snake\_Steel](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Snake\_Steel](https://forum.kirupa.com/u/Snake_Steel)\
**Post date:** [January 5, 2005, 8:15am UTC](https://forum.kirupa.com/t/fmx2004-variables-and-paths/75025/1 "2005-01-05T08:15:14Z")

</div>

Can someone please tell me why I cannot use a variable in a path?

```auto
function buttonControl(buttonNumber){
	var buttonClip = eval ("bu"+buttonNumber+"_mc");
	
         this.target_mc.buttonClip.gotoAndStop("active");

}

```

I can work my way around it, but why doesn’t it work?

Thanks
