I have a setup where I'm loading files from another server and I wanted to setup a global contextLoader. Here is how I'm doing it.
My Globals class is just a public class that has an object called param so I store the loaderContext in there.
localMode just has a boolean value if you are testing from your desktop of from a server.
So what I'm doing is checking if I'm on the server then store a global loaderContext.
Actionscript Code:
Globals.param.loaderContext = ( !localMode ) ? new LoaderContext(true, ApplicationDomain.currentDomain, SecurityDomain.currentDomain) : null;
My question is can I do this. Have one contextLoader for all my load methods throughout my site or do I have to create a unique one for each load method. I don't see why I would have to do that but just wanted to make sure what I am doing is valid