# Referring to different MC's with variables

**URL:** <https://forum.kirupa.com/t/referring-to-different-mcs-with-variables/90799>\
**Category:** flash\
**Created:** [May 20, 2005, 7:43pm UTC](https://forum.kirupa.com/t/referring-to-different-mcs-with-variables/90799 "2005-05-20T19:43:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvangelosRoxxor](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@EvangelosRoxxor](https://forum.kirupa.com/u/EvangelosRoxxor)\
**Post date:** [May 20, 2005, 7:43pm UTC](https://forum.kirupa.com/t/referring-to-different-mcs-with-variables/90799/1 "2005-05-20T19:43:13Z")

</div>

What’s the syntax to use objects, like a movieclip, with variables that increment. For example:

movieClip\_counter\_mc.\_visible = true;

where counter is a variable that changes throughout the script. So sometimes movieClip\_1\_mc will be visible, and other times movieClip\_4\_mc will be visible, and so on.

Any help is much appreciated.
