# Storing Path in a Var

**URL:** <https://forum.kirupa.com/t/storing-path-in-a-var/267245>\
**Category:** flash\
**Created:** [July 30, 2008, 2:08am UTC](https://forum.kirupa.com/t/storing-path-in-a-var/267245 "2008-07-30T02:08:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [July 30, 2008, 2:08am UTC](https://forum.kirupa.com/t/storing-path-in-a-var/267245/1 "2008-07-30T02:08:38Z")

</div>

I’m not entirely sure how to go about this, but I want to store a path inside a var to reuse throughout some interface code:

```auto

var thisPath:Object = pageText_mc.pageCntrls_mc;
[thisPath + "."]prevButton_mc._visible = false;
trace(pageText_mc.pageCntrls_mc.prevButton_mc._visible);

```

No error, but it doesn’t yet work. Any ideas?
