Skip to main content
amitKumarKanda
Inspiring
May 16, 2013
Question

Script Timeout

  • May 16, 2013
  • 2 replies
  • 902 views

Hi,

I am  using a large XMLList which is processing for some calculations. it is giving the below mentioned error message.

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.

Statment : var objectCount:int = objMain.subjObj.subjectContent..*.(hasOwnProperty('@id') && @iD84_2 == itemId).@objectCount;

Is there any way to achieve it in a faster way. Looking forword.

Thanks ----- Amit

This topic has been closed for replies.

2 replies

Inspiring
May 16, 2013

Or you can change your processing to be asynchronous.For example I have created a small search engine for a site and while it is indexing the xml it only does a few nodes on each frame.

Really depends upon what you are doing.

Here is a good tutorial:

http://www.senocular.com/flash/tutorials/asyncoperations/

kglad
Community Expert
Community Expert
May 16, 2013

(asynchronous is a misnomer - that should be called chunking.)

kglad
Community Expert
Community Expert
May 16, 2013

click file>publish settings>swf and assign a script timeout limit.