flashactionscriptloadingalchemyflascc

Increase Flash script execution time (FlasCC)


I am using FlasCC. My app works fine but takes long to load. I get a message that it has exceeded 15 seconds (Error #1502). How can I make this time longer?


Solution

  • The short answer is that you can't increase the max timeout.

    The long answer is that you can work around it:

    1. If you're doing a lot of computation in your FlasCC code
      1. You could break up your execution into smaller "chunks" that get called asynchronously.
      2. You could use pthreads within your FlasCC C code (FP 11.5+)
    2. You could put your FlasCC instance into a Worker thread (FP 11.4+)