# Build up

**URL:** https://forum.kirupa.com/t/build-up/16176
**Category:** Uncategorized
**Created:** [March 21, 2003, 9:13pm UTC](https://forum.kirupa.com/t/build-up/16176 "2003-03-21T21:13:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![geedogg](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@geedogg](https://forum.kirupa.com/u/geedogg)
#### Post date: [March 21, 2003, 9:13pm UTC](https://forum.kirupa.com/t/build-up/16176/1 "2003-03-21T21:13:13Z")

</div>

Hello=)

im using a script to load in diffrent menus on my site. They bulid up over eachother. So when u push a button, a new version of the exact same layout loads over the old one.

The problem is that the oldones dont go away, and the flash starts to run weary slow after some clicks.  
Id like the old ones to be removed when the new one is finished animating.

The code im using is

on (release) {  
var newMc = this.attachMovie(“megmain”,“interface”,1);  
newMc.\_x = 0;  
newMc.\_y = 0;

}

PLEASE HELP ME=) im a looser!!!

---

<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: [March 22, 2003, 8:40am UTC](https://forum.kirupa.com/t/build-up/16176/2 "2003-03-22T08:40:37Z")

</div>

Howdy…

You might want to take a look at ‘MovieClip.removeMovieClip’ to delete the old ones…

---

<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: [March 22, 2003, 6:57pm UTC](https://forum.kirupa.com/t/build-up/16176/3 "2003-03-22T18:57:35Z")

</div>

try this geedog:

[AS]  
on (release) {  
myOldMovieClip.removeMovieClip();  
myNewMovieClip.attachMovie(“libraryName”, “instanceName”, level);  
myNewMovieClip.\_x = 0;  
myNewMovieClip.\_x = 0;  
}  
[/AS]

and you´re not a looser 😉

---

<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: [March 22, 2003, 6:59pm UTC](https://forum.kirupa.com/t/build-up/16176/4 "2003-03-22T18:59:56Z")

</div>

Hey Loser G:

it’s spelled L O S E R

looser isn’t a word…

j/k

:beam:

Rev ![](http://www.aulman.com/rev.gif)

---

<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: [March 22, 2003, 7:25pm UTC](https://forum.kirupa.com/t/build-up/16176/5 "2003-03-22T19:25:07Z")

</div>

u guys know any way to remove all other clips but the one u are using. i have this code,

then\_root.kompetansemain30.removeMovieClip();

but then i have to go in manualy and in all the depth and remove them.

Anyone know how to do it?
