maxkar
Сейчас всё подробно опишу.
Для Loader.swf поставил "Доступ только к сети". Загружаю swf следующим кодом:

Код AS3:
gameLoader.load(
new URLRequest("http://????/Game.swf?"+(new Date()).getTime().toString()),
new LoaderContext(true,ApplicationDomain.currentDomain));
Для Game.swf поставил "Доступ только к сети". Загружаю картинки следующим кодом:

Код AS3:
loader.load(new URLRequest(url),new LoaderContext(true));
При этом выводит:
Цитата:
*** Нарушение безопасности изолированной среды ***
Подключение к http://cs9315.vkontakte.ru/????/????.jpg прервано – нет разрешения от http://????/Game.swf?1330010554854
*** Нарушение безопасности изолированной среды ***
Подключение к http://cs5504.vkontakte.ru/????/????.jpg прервано – нет разрешения от http://????/Game.swf?1330010554854
SecurityError: Error #2123: Нарушение изолированной среды: Loader.content: http://????/Game.swf?1330010554854 не может осуществить доступ к http://cs5504.vkontakte.ru/????/????.jpg. Не предоставлен доступ к файлам политики.
at flash.display::Loader/get content()
at d.game.loading::UsersLoad/GetData()
at d.game.gui.mainBottom::GUIMainBottom/ResetFriends()
at d.game.gui.mainBottom::GUIMainBottom()
at d.game.manager::GUIManager()
at d.game::Game/OnFirstLoadSuccess()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at d.game.loading::FirstLoad/OnMapPreparationSuccess()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at d.game.manager::MapManager/OnAllObjectsLoadSuccess()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at d.game.loading::MapLoad/OnObjectLoadSuccess()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at d.game.loading::ObjectLoad/OnComplete()
|
А запустить с:

Код AS3:
gameLoader.load(
new URLRequest("http://eqtst.anybrothers.com/gamenew/i/Game.swf?"+(new Date()).getTime().toString()),
new LoaderContext(true,ApplicationDomain.currentDomain,SecurityDomain.currentDomain));
Я не могу. Ругается:
Цитата:
SecurityError: Error #2142: Нарушение изолированной среды: локальные SWF-файлы не могут использовать свойство LoaderContext.securityDomain. file:///????/Loader.swf пытался загрузить http://????/Game.swf?1330010714546.
at flash.display::Loader/_load()
at flash.display::Loader/load()
at d::Main/gameLoad()
at d::Main/onAddedToStage()
|
Я пока вообще ничего не понимаю.