flex4: swfloader не загружает игры
-
02-10-2019 - |
Вопрос
У меня есть несколько флэш-игр, которые, когда я загружаю их в мой браузер Firefox, они загружают нормально, но когда я загружаю их с помощью Swfloader, используя Flex 4 (Flash Builder), они загружаются до 100% и не показывают меню «Пуск».
Любые идеи, как решить вопрос?
Решение
Загруженная вспышка и веб-сайт, который содержит страницу с загруженной вспышкой, где не на том же ApplicationDomain, помимо фиксации.
Я добавил параметр SWFLoader.loadForCompatibility=true
/**
* A flag that indicates whether the content is loaded so that it can
* interoperate with applications built with a different verion of the Flex compiler.
* Compatibility with other Flex applications is accomplished by loading
* the application into a sibling (or peer) ApplicationDomain.
* This flag is ignored if the content must be loaded into a different
* SecurityDomain.
* If <code>true</code>, the content loads into a sibling ApplicationDomain.
* If <code>false</code>, the content loaded into a child ApplicationDomain */
Не связан с StackOverflow