# Dynamic path. HOW?!?!

**URL:** <https://forum.kirupa.com/t/dynamic-path-how/40754>\
**Category:** flash\
**Created:** [January 21, 2004, 5:13pm UTC](https://forum.kirupa.com/t/dynamic-path-how/40754 "2004-01-21T17:13:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hommer](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Hommer](https://forum.kirupa.com/u/Hommer)\
**Post date:** [January 21, 2004, 5:13pm UTC](https://forum.kirupa.com/t/dynamic-path-how/40754/1 "2004-01-21T17:13:15Z")

</div>

How do i control a movie clip which path is contained in a variable?  
I.E.: I have a variable called:  
\_root.activeButton

The variable has this path as a value:  
\_root.buttons.button1

Q: How do I tell \_root.buttons.button1 to go to frame 1?

I think it is something like this, but I can’t remember exactly:  
[\_root.activeButton].gotoAndStop(1)
