private var symbolLoader:Loader = null;private var symbolRequest:URLRequest = null;private function loadTeamSymbol():void{ symbolLoader = new Loader(); symbolLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, symbolLoader_CompleteHandler); symbolRequest = new URLRequest(SourceImagesPath.teamSymbolPath + "teamSymbol.swf"); var loaderContext:LoaderContext = new LoaderContext(true); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); symbolLoader.load(symbolRequest, loaderContext);}private function symbolLoader_CompleteHandler(event:Event):void{ var teamSymbolClass:Class = symbolLoader.contentLoaderInfo.applicationDomain.getDefinition("TeamSymbol") as Class; Cache.teamSymbol = new teamSymbolClass();}
?