[Extendflash] Error Because JSFL script is running too long

Nick Kaayk Nick.Kaayk at bbc.co.uk
Wed Aug 17 12:36:31 PDT 2005


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
<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/
	
	This e-mail (and any attachments) is confidential and may
contain
	personal views which are not the views of the BBC unless
specifically
	stated.
	If you have received it in error, please delete it from your
system. 
	Do not use, copy or disclose the information in any way nor act
in
	reliance on it and notify the sender immediately. Please note
that the
	BBC monitors e-mails sent or received. 
	Further communication will signify your consent to this. 


http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system. 
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received. 
Further communication will signify your consent to this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.flashguru.co.uk/pipermail/extendflash/attachments/20050817/782dd011/attachment.htm


More information about the Extendflash mailing list