# Remove attached movies!

**URL:** <https://forum.kirupa.com/t/remove-attached-movies/106417>\
**Category:** Uncategorized\
**Created:** [April 5, 2004, 5:38pm UTC](https://forum.kirupa.com/t/remove-attached-movies/106417 "2004-04-05T17:38:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)\
**Post date:** [April 5, 2004, 5:38pm UTC](https://forum.kirupa.com/t/remove-attached-movies/106417/1 "2004-04-05T17:38:53Z")

</div>

I have a movie called “my.fla” in which I attach some MC’s.  
I also have buttons that load swf’s in a “container”.  
But when I test the buttons, the attached MC’s in “my.fla”  
keep appearing before the swf loads.

I tried EVERYTHING with removeMovieClip, but I can’t get it  
to work!!(The swf’s I load also have attachMovie in them)

```auto
MovieClip.prototype.attach = function(base) {
    base["content"+nr].attachMovie("shirt_"+nr, "clip"+nr, nr);
    if (nr == tot) {
        clearInterval(id);
    }
    nr++;
};
id = setInterval(attach, 400, this);

//button:
btn_1.onRelease = function() {
    loadMovie("my_1.swf", "container");
};

```

Can someone help me with this?

thanks!

---

<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:** [April 6, 2004, 7:01pm UTC](https://forum.kirupa.com/t/remove-attached-movies/106417/2 "2004-04-06T19:01:30Z")

</div>

Yo scotty,

I know you made most of the code in this movie(and kode!..),  
I was just trying to figure this one out myself.

I tried EVERYTHING within my knowledge & copydog creativity,  
but just don’t get it to work.

The zip is about 1.26 MB, but I know you are not on dial-up…

Hope you can help,

thanks

[ZIP files](http://www.inflicted.nl/fruit.zip)
