![]() |
|
||||||||||
|
|||||||
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | Опции просмотра |
|
![]() |
![]() |
|
|||||
|
Привет. Есть флешка http://gresso.ru/flash.
Странное дело, у меня работает отлично во всех браузерах, но на некоторых машинах вылетает такой вот Exception в IE: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::Loader/flash.display:Loader::_load()
at flash.display::Loader/load()
at utils.imagequeue::ImageQueue/utils.imagequeue:ImageQueue::processLoading()[D:\myutils\utils\imagequeue\ImageQueue.as:124]
at utils.imagequeue::ImageQueue/utils.imagequeue:ImageQueue::loadCompleteHandler()[D:\myutils\utils\imagequeue\ImageQueue.as:149]
protected function processLoading() : void { if (!_enabled || _isLoading || imagesToLoad == 0) return; _isLoading = true; var item : ImageQueueItem = _queue[0]; _loader.load(new URLRequest(item.url)); // строка 124, на неё и ругается } UPDATE: Выяснил что не работает в 9 плеере. В 10 всё отлично. Проект компилю для девятого при помощи Flex SDK. Есть идеи? UPDATE2: Выяснил, что это по причине того что не пересоздаю Loader. Поменял код на: protected function processLoading() : void { if (!_enabled || _isLoading || imagesToLoad == 0) return; _isLoading = true; var item : ImageQueueItem = _queue[0]; _loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.INIT, loadCompleteHandler, false, 0, true); _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadErrorHandler, false, 0, true); _loader.load(new URLRequest(item.url)); } Так и надо, я не правильно пользовался Loader'ом? Все создают отдельный Loader для каждого изображения?
__________________
while(1) {} Последний раз редактировалось Division; 09.12.2009 в 17:54. |
![]() |
![]() |
Часовой пояс GMT +4, время: 18:37. |
|
|
« Предыдущая тема | Следующая тема » |
|
|