If your movie's structure allows, create an empty MovieClip and put all instances to be removed into it. Removing the parent MovieClip clears all included children.
_____
Mick G wrote:
At the moment I have a for loop that is assigning:

for(var i=0; i<1000; i++){
   this["mc"+i].onPress = function(){
        trace(this);
       this.removeMovieClip();
   }
}

it all works fine, I'm just wondering if anyone can think of anything more
efficient for such a large number of MCs. Like a listener or something?

Good luck,
--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to