PDA

View Full Version : (FMX) Do you want to abort the script?



jimw00d
December 16th, 2002, 03:08 AM
Nearing the completion of a site, keep getting a message come up during the pre-loader stage,

"A script in this movie is causing flashplaayer 6 to run slowly. If it continues to run your computer might become unresponsive. Do you want to abort the script."

I am quite flumoxed over this, if anyone has experienced it before could they give me an idea of the likely causes.

Cheers




http://northls.nbkayaking.com

lostinbeta
December 16th, 2002, 03:13 AM
It means you have a script in your movie that is causing Flash to run slowly.


This is usually caused by an unclosed loop or something.

Can you post your preloader code so I can check it and see whats going on?

Marz
December 16th, 2002, 03:35 AM
This is Flash's way of saying... HEY! You have a loop that goes on for forever...

*lol*... It's just like in C++... You'd usually just gte kicked out of the program or these white lines would appear and everything would look really really weird.. hehehe...

:)

lostinbeta
December 16th, 2002, 03:37 AM
Yeah, I know in a preloader it does that if you have something like this on Frame 1...



if(bytes_loaded == bytes_total){
_root.gotoAndPlay(2);
} else {
_root.gotoAndPlay(1);
}

jimw00d
December 17th, 2002, 04:18 AM
Frame 1

totalK = getBytesTotal()/1000;
loadedK = getBytesLoaded()/1000;
remainingK = totalK-loadedK;
percentageK = (loadedK/totalK)*100;
setProperty("bar", _xscale, percentageK);
if (loadedK>=totalK && totalK != 0) {
gotoAndPlay(3);
}

frame 2

gotoAndPlay(1);