I've been trying to migrate a large Flex 4.6 mobile project from AIR 3.5 to AIR 3.7 for several days with no luck. The issue that kills me is Error #3747: Multiple application domains are not supported on this operating system.
This happens only on iOS when I load art only SWF files from web. I changed all my classes to use ApplicationDomain.currentDomain and this fixed it for them but it doesn't work for spark.core.ContentCache
Error: Error #3747: Multiple application domains are not supported on this operating system.
at flash.display::Loader/load()
at spark.core::ContentCache/load()[E:\dev\4.y\frameworks\projects\spark\ src\spark\core\ContentCache.as:385]
I looked through the code there and it is as follows:
// Execute Loader
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.checkPolicyFile = true;
loader.load(urlRequest, loaderContext);
I can't change (and don't want a custom modified flex sdk) it because this is inside the Flex framework code. I've checked AIR 3.8 Beta and same thing happens there. This is a breaking change from AIR 3.5. It shouldn't throw an error, but just load in ApplicationDomain.currentDomain instead when the OS is iOS.
Is there any good fix for this thing? All advices are appreciated. Thanks.