Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Flex (http://www.flasher.ru/forum/forumdisplay.php?f=84)
-   -   scriptTimeLimit. Не пашет сволотч. (http://www.flasher.ru/forum/showthread.php?t=94329)

Azy 10.04.2007 16:28

scriptTimeLimit. Не пашет сволотч.
 
Знаю то что надо будет грузить много позиций. И обработка будет ооочень долгой. Поставил
Код:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" scriptTimeLimit="100000">
Все равно через пару минут выскакивает
Код:

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
        at editor::PriceItem/set id()
        at editor::Price/priceXmlLoadedHandler()
        at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/flash.net:URLLoader::onComplete()

Кто еще какие варианты предложит? :)

__i 10.04.2007 16:41

Сделать так чтобы небыло такой дооооооолгой обработки. а не лепить туда таймаут

Azy 10.04.2007 16:48

Она и так будет. Грузится xml на 10 000 позиций, которые потом парсятся в объекты. В любом случае парсинг нужен и это надоооолго.

7thsky™ 10.04.2007 16:49

Вырезка из хелпа [линк]
Цитата:

scriptTimeLimit property

public var scriptTimeLimit:Number

Specifies the maximum duration, in seconds, that an ActionScript event handler can execute before the Flash Player assumes that it is hung, and aborts it. The maximum allowable value that you can set is 60 seconds.

The default value is 60.

Azy 10.04.2007 16:52

7thsky™
thnx...

Епт... Слов нет...

etc 10.04.2007 17:26

И правильно, чтобы не вешали комп.


Часовой пояс GMT +4, время: 07:43.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.