var loader:Loader=new Loader();
loader.load(new URLRequest("路径"),new LoaderContext(false,ApplicationDomain.currentDomain));
如果主项目加载小项目的swf的时候,就最好写上这个,能防止跨域读取swf的问题。
loader.load(new URLRequest("路径"),new LoaderContext(false,ApplicationDomain.currentDomain));
如果主项目加载小项目的swf的时候,就最好写上这个,能防止跨域读取swf的问题。