Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
0

Script Timeout

Explorer ,
May 16, 2013 May 16, 2013

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

TOPICS
ActionScript
848
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 16, 2013 May 16, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 16, 2013 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/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 16, 2013 May 16, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines