PDA

View Full Version : very long running javascripts


flatface
09-30-2005, 12:14 PM
Hi,

Im running a very compicated command that takes a very long time to complete. If I run it from the flash 8 IDE I get a warning message box every 5-10 min telling me that a script is still running do I want to cancel/continue. I want to continue.
no errors occur if I keep hitting continue until it is complete.

If I run the command from the command prompt or desktop I dont get any warning message but I get an exception in a native function after about 5 min.

Is there any way of avoiding hitting continue every warning? (I did try wedging in the return key but cancel is the default) EDIT: wedging the return key seems to work for a few warnings but eventually stops before finishing the script.

jjbilly
10-03-2005, 02:33 PM
I believe that you will avoid this if you run from the command line.

Alternatively, if you already have Flash 8, use fl.showIdleMessage(false).

diddles
10-03-2005, 05:00 PM
Thanks for that dude! love when flash 8 has all the extra features you're a needin'

diddles
10-04-2005, 03:15 PM
Another quick question on this...

Is it possible to have an escape out of a javascript - such as an on keypress that stops the script where it got to. at the moment you need to end program to stop a long running script.