RSL_A should unload. Make sure it actually did get loaded into the child
Thanks Alex. I like your concise and unambiguous answers!
In the scenario I described above, I am guessing sub-app and RSL_A both load into child application domain.
Isn't true or there is some glitch when it might not happen?
If you're not seeing it unload, I would double-check the code that loads the
RSL. I'm not sure how much testing we did with such a configuration. Any
code that assumes the applicationDomain can get fooled in these kinds of
scenarios. For example, if you had code that loaded a SWF in some class
static public function loadRSL(url:String):void
var loader:Loader = new Loader();
loader.load(new URLRequest(url), new LoaderContext(false,
And that class is also in the main app, then if the sub-app uses that class
to load an RSL it will go into the main app's appdomain because the class is
owned by the main app's appdomain.
Another reason it wouldn't unload is if it still has references because it
registered a class with a Singleton or something like that.