if you wanted to clear ALL movies in a level, you could just do a for-in loop do a removeMovieClip() on all the movieclips. If you're trying to keep some of the clips, one thing you could do is add an "id" (or some other identifier) property, then wehy you do a for-in loop you could test for that particular id.
On 10/25/05, Chris Wilson <[EMAIL PROTECTED]> wrote: > > I was never able to get a similar strategy working properly, so I ended up > using an Object as an associative array to hold the various MovieClips, > and > a function to 1) load and position the movie clip if it wasn't already in > the associative array; and 2) set the newly selected clip's visible > attribute to true, while setting all the others' visible attributes to > false. > > Not ideal, but it works. > > -Chris > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of lists > Sent: Tuesday, October 25, 2005 2:56 PM > To: Flashcoders mailing list > Subject: [Flashcoders] remove an attached movie? > > Hi there - I have some code in which I attach a movie from my library. > > this.attachMovie("level1Mc", "l1_mc", 10); > > Now depending on button presses, there are other movies attached and > replacing previous > ones... so what I am wondering, is there a way to clear a level? So for > example when i > click a button, it clears any attached movies in level 10, etc? > > Thanks! > > :::::::::::::::::::::: > Dustin > :::::::::::::::::::::: > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

