Search code examples
flashtimeouthaxe

How to extend default timeout period in flash application?


I have an application written in flash (actually it is written in Haxe and run under SHWX but it doesn't matter here). I have a pretty complex task that consumes a lot of CPU power and sometimes executes for more that 15 seconds. If that happens, I've got an error saying 'A script has executed for longer than the default timeout period of 15 seconds.' and everything crashes.

I know I can use continuations to stop this from happening but is there a way to extend that 'default timeout period'? It's a developer tool, responsivnes doesn't really matter.


Solution

  • Another way is to link a swfmill-based swf via -swf-lib switch and set this ScriptLimits tag there, haxe will re-use it then.