Copy link to clipboard
Copied
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') && @iD == itemId).@objectCount;
Is there any way to achieve it in a faster way. Looking forword.
Thanks ----- Amit
Copy link to clipboard
Copied
click file>publish settings>swf and assign a script timeout limit.
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
(asynchronous is a misnomer - that should be called chunking.)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now