# removeChild and setTimeout

**URL:** <https://forum.kirupa.com/t/removechild-and-settimeout/254034>\
**Category:** flash\
**Created:** [March 7, 2008, 12:38pm UTC](https://forum.kirupa.com/t/removechild-and-settimeout/254034 "2008-03-07T12:38:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Froskie](https://avatars.discourse-cdn.com/v4/letter/f/a4c791/32.png) [@Froskie](https://forum.kirupa.com/u/Froskie)\
**Post date:** [March 7, 2008, 12:38pm UTC](https://forum.kirupa.com/t/removechild-and-settimeout/254034/1 "2008-03-07T12:38:12Z")

</div>

Hello there! Greetings from Brazil!

Here is my problem: I’m loading an SWF that load images using a setTimeout interval. It goes like this:

```auto
function onLoad(e):void
{
    /* ... addChild stuff */
    setTimeout(doLoad, 5000);
}

var lLoader:Loader = new Loader();
lLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoad);

function doLoad():void
{
    lLoader.load(urlRequest);
}

```

It works fine. But at some point I remove this SWF using the removeChild method, but I’ve noticed in Firebug that it still calls the images.

Any idea?
