Visible and Var?

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? :slight_smile: