# Remove attached movies!

**URL:** https://forum.kirupa.com/t/remove-attached-movies/47609
**Category:** Uncategorized
**Created:** [April 5, 2004, 5:38pm UTC](https://forum.kirupa.com/t/remove-attached-movies/47609 "2004-04-05T17:38:53Z")
**Posts on this page:** 1
**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/47609/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!
