PDA

View Full Version : Action Script Time out



wadoodahmed
August 12th, 2003, 10:02 AM
Hi fellows I am in deep deep **** as you must know that flash throws this alert which says "A Script in the movie is causing Macromedia Flash player 6 to run slowly. If it continues to run, your computer may may become unresponsive. Do you want t abort the script".
now this alert pops up after 15 seconds of processing tell me is there any way by which I could some how increase that time dont tell me to use setInterval() cuz I already did and it did not help a gr8 deal. plz plz plz get some thing there has to be some property which could help me handle this problem.
Wadood

λ
August 12th, 2003, 10:07 AM
No, that feature is a built in safety feature to stop the flash player from becoming unresponsive.

To help you could try rewriting your for/while loops as timeline or onEnterFrame loops.

for example:



for(var i = 0; i < 350; i++){
trace(i);
}
//can be rewritten as:

//code on frame 1
if(!i){
i = 0
}
trace(i);
i++;
//code on frame 2
if(i < 350) gotoAndPlay(1);

jakepeg
February 9th, 2006, 04:27 AM
Reading eh? I'm in Reading. How funny!

Thats right ?. Although frame loops are a tad slow, and if you are getting a timeout error then it likely you have a lot of looping to do.

You can modify or remove the timeout tag from swf files using the SWF ScriptLimits Injector (http://www.buraks.com/swfsli/) but I'd say use it with caution as the limiter was put there for a reason.