PDA

View Full Version : SWF lags


guitarhero
06-04-2011, 10:21 PM
Hi

This swf here (toybox.ch/files/stahnie2.html , sorry can't post links yet) runs fine and smooth for hours on my desktop PC. On my notebook however it starts lagging really bad after about 20 seconds.
Is this just a matter of power? (My notebook has 2GB RAM). And if, how can I decrease the size or something?

Thanks!

guitarhero
06-05-2011, 07:45 AM
This is my code, btw:

bullets = new Array();
numbullets = 0;

for (i=0; i<bullets.length; i++) {
if (tex._currentframe == 290) {
bullets[i].removeMovieClip();
bullets.splice(i,1);
i--;
}
}

var mis = setInterval(sho, 3800);
function sho() {
bullets.push(attachMovie("tex", "tex"+numbullets++, getNextHighestDepth()));
}