# \_visible movie

**URL:** <https://forum.kirupa.com/t/-visible-movie/117612>\
**Category:** Uncategorized\
**Created:** [July 28, 2004, 8:25pm UTC](https://forum.kirupa.com/t/-visible-movie/117612 "2004-07-28T20:25:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![grinfax](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@grinfax](https://forum.kirupa.com/u/grinfax)\
**Post date:** [July 28, 2004, 8:25pm UTC](https://forum.kirupa.com/t/-visible-movie/117612/1 "2004-07-28T20:25:45Z")

</div>

Hi,  
I thought this was going to be basic, but I can’t seem to figure it out. I have 8 movie clips, each instance of them named t1, t2, t3, t4 …t8. I also have 8 buttons, each button sets the value of the variable “current” as an integer (I need var current to be an integer for another part of the movie). So this is what I have:

```
vid = "t"+current;
_root.vid._visible = true;

```

and it does not work.

Any suggestions?

thanks.

---

<div class="post-metadata">

**Author:** ![newhopekenny](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/newhopekenny/32/317_2.png) [@newhopekenny](https://forum.kirupa.com/u/newhopekenny)\
**Post date:** [July 28, 2004, 8:42pm UTC](https://forum.kirupa.com/t/-visible-movie/117612/2 "2004-07-28T20:42:00Z")

</div>

try changing

```auto
_root.vid._visible = true

```

to

```auto
_root[vid]._visible = true

```

Assuming the rest of your code is okay, that should do it.

By hard-coding the variable into the path expression like that, you’re really telling Flash to look for a MC with the instance name “vid” somewhere on the \_root level.

You’ve just got to add those wonderful braces around the variable (and drop the period before the braces) to let Flash know it’s a variable, not an instance name.

---

<div class="post-metadata">

**Author:** ![grinfax](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@grinfax](https://forum.kirupa.com/u/grinfax)\
**Post date:** [July 28, 2004, 8:54pm UTC](https://forum.kirupa.com/t/-visible-movie/117612/3 "2004-07-28T20:54:17Z")

</div>

Worked perfect. Thank you.
