# Visible and Var?

**URL:** <https://forum.kirupa.com/t/visible-and-var/175968>\
**Category:** flash\
**Created:** [January 19, 2006, 7:06am UTC](https://forum.kirupa.com/t/visible-and-var/175968 "2006-01-19T07:06:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takashy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/takashy/32/1985_2.png) [@Takashy](https://forum.kirupa.com/u/Takashy)\
**Post date:** [January 19, 2006, 7:06am UTC](https://forum.kirupa.com/t/visible-and-var/175968/1 "2006-01-19T07:06:51Z")

</div>

Hi @ll~!

Well, i have a small problem…

I made a Var and called it Pic…

Pic=1;

now i have a few MC’s that i want to be visible and not to be visible…

i called all of them like 1,2,3,4 and so on~  
now i made the visible code…

setProperty("\_root.Pic", \_visible, 1);

and i made some buttons… with…  
on (release) {  
Pic=Pic+1;  
}

actualy i want that it show the MC with the actual number… like,if Pic=3 it shows the MC with the instance name 3 and so on…

but it does not…

i tryed something like…

nummber=number+1; (for the button)  
“Pic”+nummber;

and than  
setProperty("\_root.“Pic”+number", \_visible, 1);

so the names of the MC’s are Pic1;Pic2…

but that does not work to…

can som1 help me plz? 🙂
