# How to stop a timer in an unloaded swf?

**URL:** <https://forum.kirupa.com/t/how-to-stop-a-timer-in-an-unloaded-swf/279959>\
**Category:** flash\
**Created:** [January 21, 2009, 1:06am UTC](https://forum.kirupa.com/t/how-to-stop-a-timer-in-an-unloaded-swf/279959 "2009-01-21T01:06:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![madfatter](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@madfatter](https://forum.kirupa.com/u/madfatter)\
**Post date:** [January 21, 2009, 1:06am UTC](https://forum.kirupa.com/t/how-to-stop-a-timer-in-an-unloaded-swf/279959/1 "2009-01-21T01:06:27Z")

</div>

Hi,

I have a project in which the main swf loads another into it. The swf that gets loaded has an xml driven slideshow that runs on a timer. To view what the timer was doing in the output I traced the name of each photo as the timer fired. When I unload the swf I’ve noticed that though it appears to be gone for the stage the timer continues to fire and the images are listed in the output. I know that I can stop a timer by using

```auto
 photoTimer.stop(); 

```

but I can’t figure out how to stop the timer in a loaded swf. I’m using this code to remove the swf

```auto
this.mc_content_box.mc_placeholder.removeChild(contentLoader);

```

I’m worried that the timer may be loading the photos in the background somehow and increasing the workload. Any suggestions would be greatly appreciated.

Thank you.
