# \[MX04\] Remove subclips of clip

**URL:** https://forum.kirupa.com/t/mx04-remove-subclips-of-clip/45124
**Category:** flash
**Created:** [March 11, 2004, 7:16am UTC](https://forum.kirupa.com/t/mx04-remove-subclips-of-clip/45124 "2004-03-11T07:16:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Cruiser](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@Cruiser](https://forum.kirupa.com/u/Cruiser)
#### Post date: [March 11, 2004, 7:16am UTC](https://forum.kirupa.com/t/mx04-remove-subclips-of-clip/45124/1 "2004-03-11T07:16:32Z")

</div>

Hi board,

I have a movieClip on stage \_root.myClip. I have attached several clips to this clip. Now after some random amount of time I need to remove all these clips. One catch though I can’t remove the original clip and I dunno if its a good practice to store movieClip references in arrays for later retrieval cause there are gonna be around 1000+ subclips at any given point of time. (This is the logic so I cant change that)

I have also tried for-in loop but it doesnt work for me. I doesn’t remove all the clips and also removes functions if there are any. I tried to check for funtions with typeof but it returns “string” not “function”.

Any alternate stratergy?

What are the memory specifications for Flash MX 2004 Pro? I mean how much memory does flash take for references like C takes 4 bytes for a pointer

Thanks

Cruiser
