PDA

View Full Version : memory leak on my site?


ddk632
07-30-2006, 07:02 AM
http://www.csoperations.net/index_flash.html

I believe that there is a memory leak, the site runs slow after a few minutes and keeps getting slower; it doesn't run on some systems, mostly Safari, but it's not worked in IE6/FP7 once although I have no idea why;

I used the mx.transitions.transitionManager for all the fade and photo effects for the intro, however for the text I used my own fader functions; also the logo in the top left corner, and lots of little movieclips, use the "photo" transition effect running on a continuous interval (every 7-10 seconds or so) - although I don't see how the interval itself can affect site performance so much, unless the stock transitions keep adding in memory, compounding every time they are ran; do these transitions stay in memory after you use them and keep slowing things down; can you void or delete the transition once it's done? Does anyone use them or are they too heavy for any real web use and it is wiser to opt for using your own functions?

any insight would be appreciated, as well as of course the general overall feedback on the site itself. Thanks in advance.

Flash Gordon
07-30-2006, 07:23 AM
It's not a memory leak! That I can guarentee you.

Several things slow down flash:
1) leaving un necessary onEnterFrames running.
2) not clearing setInterval()'s (which are global).
3) lots of alpha values.

Go through and check that list and I bet you find your problem.

ddk632
07-30-2006, 07:29 AM
ok I'll be back!