# "attachMoive" through a function

**URL:** <https://forum.kirupa.com/t/attachmoive-through-a-function/221238>\
**Category:** flash\
**Created:** [April 2, 2007, 7:00pm UTC](https://forum.kirupa.com/t/attachmoive-through-a-function/221238 "2007-04-02T19:00:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cosizzle](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cosizzle/32/2718_2.png) [@Cosizzle](https://forum.kirupa.com/u/Cosizzle)\
**Post date:** [April 2, 2007, 7:00pm UTC](https://forum.kirupa.com/t/attachmoive-through-a-function/221238/1 "2007-04-02T19:00:33Z")

</div>

Hey, im trying to attach a movie by calling it through a function, it doesnt like when I string the name within the function call and if I were to string it within the function it would look for that MC.

Heres the code of what I have

```auto

function addMovieMC(mcName:MovieClip) {
    _root.holder.attachMovie(mcName, btn, 1);
}
addMovieMC(btn1)

```
