# Is this impossibe?

**URL:** <https://forum.kirupa.com/t/is-this-impossibe/205791>\
**Category:** Uncategorized\
**Created:** [November 2, 2006, 12:19am UTC](https://forum.kirupa.com/t/is-this-impossibe/205791 "2006-11-02T00:19:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waynebrady](https://avatars.discourse-cdn.com/v4/letter/w/eb8c5e/32.png) [@waynebrady](https://forum.kirupa.com/u/waynebrady)\
**Post date:** [November 2, 2006, 12:19am UTC](https://forum.kirupa.com/t/is-this-impossibe/205791/1 "2006-11-02T00:19:55Z")

</div>

I’m trying to write a function that takes myMC variable to be the name of the movieclip. Is this impossible? Thanks

function moveToLocation(myMC) {  
\_root[myMC].attachMovie(myMC, myMC, getNextHighestDepth());  
}
