[Flash8] setInterval and deleteMovie within XML-KGallery

Hi there,
Alright, this is sort of tricky to explain,but I will give it a shot:

I am facing two different problems which are in a way (I guess)related to each other.
If you click on the link below, you will get to the page I am currently working on. Click your way to the gallery> 3D (the top picture frame). Then you will get to what is basically kirupa’s xml gallery with just minor changes and personal additions. Yet, before you continue to click your way through the thumbnails or the gallery navigation please watch the small arrow, which appears 2 seconds after having loaded the swf, right next to the small squares. It’ will seem to work fine, right?

now you may click on the link:
http://www.pixelgraphics.ch

The arrow is masked by a mask, which moves back and forth, until one of the squares is clicked on, then the arrow’s visibility is set to “false”; the code -within the loaded .swf- looks something like this:

/////
import mx.transitions.Tween;
import mx.transitions.easing.*;

arrow._visible = false ;

interval01 = setInterval(seeMask, 2000);

function seeMask () {
clearInterval(interval01);
arrow._visible = true ;
var moveMask:Tween = new Tween(maskMD, “_x”, Regular.easeOut, dummy_left._x + dummy_left._width, dummy_right._x - maskMD._width, 20, false);
seeMask.onMotionFinished = function (){
this.yoyo () ;
}
}
/////

Now, it only works for the first loaded swf (meaning the first thumbnail in the gallery), after that, the interval (which is called the same in every swf) won’t let the Tween play correctly.

In Picture 03 I disabled the mask, so you can see what actually the mask is doing. Despite that I have a clearInterval tag within the function, I renamed in Picture 08 the Interval to IntervalXY, and obviously it seems to work properly.

The reason why I don’t like that solution is my second problem. After surfing within the gallery for about a minute, the internet browser’s processing thread increases tremendously and the computer get slow. Watch this:

http://www.pixelgraphics.ch/del_me/screenie2.jpg

I suspect that the loaded swfs somehow do now unload, that would explain why the intervals keep interferring with each other. Perhaps there is a script (the arrow tween or something) which keeps executing after the swf was replaced and all those tweens cumulate and eventually slow down the pc?

Is it possible to sort of delete all processes / Intervals / variables , etc. After the swf was replaced with another one from the gallery?

well, that’s quite a load, thanks for reading and any advice will be helpful!
thanks

chris