Build up

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!!!

Howdy…

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

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 :wink:

Hey Loser G:

it’s spelled L O S E R

looser isn’t a word…

j/k

:beam:

Rev

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?