# Getting a moviclip by instance name

**URL:** <https://forum.kirupa.com/t/getting-a-moviclip-by-instance-name/234073>\
**Category:** Uncategorized\
**Created:** [July 30, 2007, 11:48am UTC](https://forum.kirupa.com/t/getting-a-moviclip-by-instance-name/234073 "2007-07-30T11:48:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thor918](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thor918](https://forum.kirupa.com/u/thor918)\
**Post date:** [July 30, 2007, 11:48am UTC](https://forum.kirupa.com/t/getting-a-moviclip-by-instance-name/234073/1 "2007-07-30T11:48:22Z")

</div>

this is probably an easy question, but I can’t seem to find the answer.

I want to change visiability of a movieclip based on a string.

This is what I tried, and this does not work!

if (“mymovieclip” in this){  
//if movieclip exists, do stuff  
var instance = this+".mymovieclip";  
instance.visible = true;  
}

Comment please 😉
