Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 3.0 (http://www.flasher.ru/forum/forumdisplay.php?f=83)
-   -   Проблема с LoaderContext (http://www.flasher.ru/forum/showthread.php?t=134088)

mre 21.12.2009 16:50

Проблема с LoaderContext
 
Обычная ситуация.
Есть 2 домена, swf одного домена грузит swf с другого.
Гружу в тот же applicationDomain:
Код AS3:

new LoaderContext(false, ApplicationDomain.currentDomain );

Но все равно классы с одним путем отличаются почему-то в них.
Кто-нибудь сталкивался с подобной проблемой?

Update: проблема решена, нужно было еще указать и SecurityDomain.

dimarik 21.12.2009 17:28

Цитата:

If you are loading a SWF file from another domain, and allowing it to be placed in a separate security domain, then you cannot control the choice of application domain into which the loaded SWF file is placed; and if you have specified a choice of application domain, it will be ignored.
Укажите явно security domain.
Код AS3:

new LoaderContext(false, ApplicationDomain.currentDomain, SecurityDomain.currentDomain);

Мук называет это импортирующей загрузкой

mre 21.12.2009 18:07

Ага, так и сделал.
Спасибо.


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

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