use removeMovieClip() applied to the load-target or explicitly stop all streams and loops in the loaded swf.
Thanks for the response Kglad. I tried the removeMovieClip() method but no success.
I did, however, get the issue resolved by clearing the interval just before unloading the clip.
I also found this thread which was very helpful -> http://forums.adobe.com/message/610611#610611
So it seems that any interval timer or event handler set up in a movie needs to be specifically removed before the movie is unloaded. Here is what I did:
Create a function within the loaded movie itself to handle the interval timer (timer_int). I called it:
function schedTreeDestructor() //kills any timer process that is running. Called prior to unloading the clip, else timer keeps going
Then, in the main movie, just before unloading the movie clip(which is called schedImage), I call the function like so:
No more interval timer running. Kinda crude, (me thinks) but it works.
1 person found this helpful
or you can clear the interval directly: