# attachMovie from an external swf

**URL:** <https://forum.kirupa.com/t/attachmovie-from-an-external-swf/250807>\
**Category:** flash\
**Created:** [February 1, 2008, 5:39pm UTC](https://forum.kirupa.com/t/attachmovie-from-an-external-swf/250807 "2008-02-01T17:39:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![satiss](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@satiss](https://forum.kirupa.com/u/satiss)\
**Post date:** [February 1, 2008, 5:39pm UTC](https://forum.kirupa.com/t/attachmovie-from-an-external-swf/250807/1 "2008-02-01T17:39:26Z")

</div>

Hello everyone, I have a pretty basic question.

I have 2 .swf : main.swf and child.swf

The main.swf load the movie with \_root.myExternal.loadMovie(“child.swf”). Once everything is loaded I need to attach a movieClip from the child.swf to the main.swf.

In the child.swf, I tryed with \_root.whatEverClipInMain.attachMovie(“myClip”,“myClipNewName”,\_root.getNextHighestDepth());

And it wasn’t working. I’m wondering if we can attach a movieClip in a library top an other swf library?

:ear:
