Site Slow Upon Revisiting Sections - Not unloading properly?

Hi All,

I am working on my new portfolio, made entirely in AS3. I am well aware that it is quite graphic heavy, and the videos will slow down some of the other animations. What I can’t seem to figure out is: why does it load fine initially, but once I click around to various sections previous sections seem to be slower and slower. When i refresh the site it runs quickly again (except in FF on a PC, thats another issue I’m working out). Is it simply just a memory issue? Aside from getting rid of videos/rasterized images, does anyone have any tricks as to how to get it to run smoother? Seems to me that if each section runs fine initially, but only run slow once different sections are loaded then perhaps there is a solution.

I am assuming that I am not properly unloading the external SWF’s, this is the code I am using:

to load the SWF’s I use:

var request1:URLRequest = new URLRequest(“area-home.swf”);
var loader1:Loader = new Loader()
loader1.load(request1);
addChild(loader1);
trace (“LOADS EXTERNAL - HOME”);

To unload them I use:

if (loader1 != null)
{
removeChild(loader1);
loader1.unload();
loader1 = null;
}

This is being loaded in the main SWF, w/in a MC.

For subsequent pages I just switch up the variables, which i know probably isn’t the best way to load them, but I am past he point of no return on this project :wink:

Here is the site. Click “Home” a few times and you’ll see it slow down.

http://www.grjd.com/09PORTFOLIO/HTML.html (IMPORTANT: this site is still VERY MUCH under construction as you will see!)

Thanks all,

Greg.