# Changing attached movie

**URL:** <https://forum.kirupa.com/t/changing-attached-movie/25548>\
**Category:** flash\
**Created:** [July 14, 2003, 8:32am UTC](https://forum.kirupa.com/t/changing-attached-movie/25548 "2003-07-14T08:32:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DumbMonkey](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@DumbMonkey](https://forum.kirupa.com/u/DumbMonkey)\
**Post date:** [July 14, 2003, 8:32am UTC](https://forum.kirupa.com/t/changing-attached-movie/25548/1 "2003-07-14T08:32:40Z")

</div>

Hi,  
I created several empty movie clips and am using attachMovieClip  
to place the movies i want. However these need to change continually and I cannot seem to get this to work. Using removeMovieClip() removes the main empty movie clip.  
Tracking the name of the current attched clip is kinda tricky too.  
How can I continually change these attached movie clips?  
Many thanks in advance,  
DumbMonkey.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2003, 8:43am UTC](https://forum.kirupa.com/t/changing-attached-movie/25548/2 "2003-07-14T08:43:48Z")

</div>

You could simply attach the MovieClip at the same depth. The previously attached MovieClip will be replaced by the new one. 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2003, 9:05am UTC](https://forum.kirupa.com/t/changing-attached-movie/25548/3 "2003-07-14T09:05:28Z")

</div>

Thanks kax,  
Wasnt sure if that was possible, cos i was getting some  
bizarre results, but thats obviously my crappy coding then.  
Cheers!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2003, 9:10am UTC](https://forum.kirupa.com/t/changing-attached-movie/25548/4 "2003-07-14T09:10:09Z")

</div>

You’re welcome. =)

If you still have any problems, post the code or attach the FLA so we can help you better. 😛
