Jump to content
Search Community

LoaderMax.defaultContext local testing

pdkn test
Moderator Tag

Recommended Posts

We hit some issues when trying to keep ApplicationDomains the same for child swfs. Setting

LoaderMax.defaultContext = new LoaderContext(true, ApplicationDomain.currentDomain); 

didn't seem to to anything. Turns out that DisplayObjectLoader only uses defaultContext if

_isLocal == false

i.e

} else if (_context == null && !_isLocal) {
			_context = (LoaderMax.defaultContext != null) ? LoaderMax.defaultContext : new LoaderContext(true, new ApplicationDomain(ApplicationDomain.currentDomain), SecurityDomain.currentDomain); 
}

This is causing us problems for local testing. It can be solved by passing in a context to each LoadItem but what do you think about changing LoaderMax.defaultContext to work irrespective of _isLocal? (or ability to override it?) Paddy ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...