[Extendflash] Error Because JSFL script is running too long

Jeff Kamerer jkamerer at macromedia.com
Wed Aug 17 12:16:30 PDT 2005


I recommend using Burak's tool (which will work with SWFs version 7 or
higher) or the fl.showIdleMessage() API.  I remember trying to be fancy
with multithreading and calling JSAPIs on setInterval from a windowswf,
and bad things happened (like crashing flash, i think).

Jeff Kamerer
Macromedia, Inc.
Flash Authoring Engineering 

-----Original Message-----
From: extendflash-bounces at flashguru.co.uk
[mailto:extendflash-bounces at flashguru.co.uk] On Behalf Of Ryan Matsikas
Sent: Wednesday, August 17, 2005 9:10 AM
To: extendflash at flashguru.co.uk
Subject: Re: [Extendflash] Error Because JSFL script is running too long

sweet. now we can toggle the script timeout :)

On 8/17/05, Barbara Snyder <brsnyder at macromedia.com> wrote:
> Also, you might be interested to know that in Flash 8, there is a new 
> method - fl.showIdleMessage() - that lets you enable or disable this 
> warning.
> 
> ------------------------------------
> Thanks -- Barbara
> 
> -----Original Message-----
> From: extendflash-bounces at flashguru.co.uk
> [mailto:extendflash-bounces at flashguru.co.uk] On Behalf Of Ryan 
> Matsikas
> Sent: Wednesday, August 17, 2005 8:56 AM
> To: extendflash at flashguru.co.uk
> Subject: Re: [Extendflash] Error Because JSFL script is running too 
> long
> 
> Also, if you are developing a panel and run into this issue you can 
> use a utility such as http://www.buraks.com/swfsli/ to increase the 
> time/recursion limit on that particular swf.
> 
> On 8/17/05, Nick Kaayk <Nick.Kaayk at bbc.co.uk> wrote:
> >
> > FYI, and in reply to my own question here's a couple of ideas for 
> > avoiding the "Error Because JSFL script is running too long".
> >
> > 1 ) use a WindowSWF to trigger the JSFL.  Then you can use 
> > setInterval, or some such, to get around the out-of-time problem; or
> > 2 ) if you call JSFL from the command-line (like in a batch file on 
> > a pc), then the code does not time-out 
> >
(http://www.actionscript.org/forums/archive/index.php3/t-49515.html).
> >  Hooray!!!
> >
> >
> >
> > -----Original Message-----
> > From: extendflash-bounces at flashguru.co.uk
> > [mailto:extendflash-bounces at flashguru.co.uk] On Behalf Of Nick Kaayk
> > Sent: 15 July 2005 11:32
> > To: Extending Flash
> > Subject: [Extendflash] setInterval?
> >
> >
> >
> > Hello,
> >
> > I am hitting "A script in the file my_file has been running for a 
> > long
> time.
> >  Do you want to continue?".
> >
> > I am running a nested loop to check all the elements in all the 
> > frames
> 
> > of all the timelines.  This is taking too long in big FLAs (hundreds

> > of items in the library). My loop is based upon the Search and 
> > Replace
> 
> > in "Extending Flash MX 2004".
> >
> > Can I run an interval in JSFL, so as to (hopefully) avoid this? Or 
> > does anyone have another suggestion for avoiding this "taking too
> long" error?
> >
> > Many thanks in advance,
> >
> > Nick.
> > http://www.bbc.co.uk/
> _______________________________________________
> Extendflash mailing list
> Extendflash at flashguru.co.uk
> http://lists.flashguru.co.uk/mailman/listinfo/extendflash
>
_______________________________________________
Extendflash mailing list
Extendflash at flashguru.co.uk
http://lists.flashguru.co.uk/mailman/listinfo/extendflash


More information about the Extendflash mailing list