RSL, LoaderContext, and ApplicationDomain. Can I transfer the application domain to RSL?

So, I have several libraries that I load as RSL into my project.

I do this in Flash Professional, as this is the easiest way to transfer your RSL to your backup project.

I load another swf into my main swf via Loader, and I NEED to give that swf the same Application Domain so that everything works as it should. But this swf uses a very old version of GreenSock (is embedded), and now I use the latest (loaded as RSL) and therefore have a conflict when loading both libraries into the same Application Domain.

That's why I ask you guys if there is a way to pass a specific ApplicationDomain or LoaderContext for my RSL? perhaps through a cross-domain file?

Any ideas?

thanks

+4
source share
1 answer

I'm not quite sure what you are trying to do, but of course you can specify ApplicationDomain:

var appDomainA:ApplicationDomain = new ApplicationDomain(); var contextA:LoaderContext = new LoaderContext(false, appDomainA); var loaderA:Loader = new Loader(); loaderA.load(new URLRequest("application2.swf"), contextA); 

Link: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/ApplicationDomain.html

+1
source

Source: https://habr.com/ru/post/1491462/


All Articles