# Attachmovie

**URL:** <https://forum.kirupa.com/t/attachmovie/148636>\
**Category:** Uncategorized\
**Created:** [May 21, 2005, 9:06pm UTC](https://forum.kirupa.com/t/attachmovie/148636 "2005-05-21T21:06:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [May 21, 2005, 9:06pm UTC](https://forum.kirupa.com/t/attachmovie/148636/1 "2005-05-21T21:06:41Z")

</div>

how would i use the attachmovie to do something simple like loading at an empty mc on the stage… basically what you would do for loadmovie… but i dont want to create seperate swf files.

---

<div class="post-metadata">

**Author:** ![flashead](https://avatars.discourse-cdn.com/v4/letter/f/46a35a/32.png) [@flashead](https://forum.kirupa.com/u/flashead)\
**Post date:** [May 21, 2005, 10:01pm UTC](https://forum.kirupa.com/t/attachmovie/148636/2 "2005-05-21T22:01:43Z")

</div>

```auto
attachMovie("idName", "instanceName", depth);

```

where “idName” is the linkage identifier in you assign to the mc in your library (right click and select Linkage, check off Export for ActionScript and type in a name).  
“instanceName” is the instance name you want to give it and depth is… well depth haha, the level you want to load your clip into…  
Hope that helped… I’d suggest using the AS reference in flash, it’ll tell you everything you need to know.

-K
