# Infinite number of Children wasting memory

**URL:** <https://forum.kirupa.com/t/infinite-number-of-children-wasting-memory/313575>\
**Category:** flash\
**Created:** [September 3, 2010, 2:56am UTC](https://forum.kirupa.com/t/infinite-number-of-children-wasting-memory/313575 "2010-09-03T02:56:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akidora](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Akidora](https://forum.kirupa.com/u/Akidora)\
**Post date:** [September 3, 2010, 2:56am UTC](https://forum.kirupa.com/t/infinite-number-of-children-wasting-memory/313575/1 "2010-09-03T02:56:29Z")

</div>

Hi, nice to meet you. I’m fairly new to AS3 and would need a little guidance.

At the moment, I came across this problem where I have to work with many swf files.

The problem is I’m using addChild() & loader to navigate between each swf. It doesn’t seem to be a problem at first, but after numerous times of clicking back and forth, the flash player starts running slow.

So I’ve came to a conclusion that eventhough new swf are added every time I clicked, but the parent swf still remained at the back which is overlapped by the child.

Any ideas how could I solve this problem?
