var context:LoaderContext = new LoaderContext(); context.applicationDomain = new ApplicationDomain(); context.securityDomain = SecurityDomain.currentDomain;