LoaderMax 从 WordPress 打开图像 URL 时出错
打开 URL“http://test.myweb.com/wp-content/uploads/2010/12/premi_logo.jpg ? Purpose=audit&gsCacheBusterID=1313725194183”时出错
var picloader:LoaderMax =new LoaderMax({name:"mainQueue", onProgress:EventLoader, onComplete:ImageLoaded}); for (var i:uint; i < news_xml.news.length(); i++) { picloader.append(new ImageLoader(news_xml.news[i].imagelink. @ path, {name:'photo_'+i})) } //picloader.auditSize =false; picloader.load();
Error opening URL 'http://test.myweb.com/wp-content/uploads/2010/12/premi_logo.jpg ?purpose=audit&gsCacheBusterID=1313725194183'
var picloader:LoaderMax =new LoaderMax({name:"mainQueue", onProgress:EventLoader, onComplete:ImageLoaded}); for (var i:uint; i < news_xml.news.length(); i++) { picloader.append(new ImageLoader(news_xml.news[i].imagelink. @ path, {name:'photo_'+i})) } //picloader.auditSize =false; picloader.load();
看起来您传递到 ImageLoader 的 URL 末尾可能有一个空格 (" ")。
另外,如果您想避免文件大小审核,可以设置 LoaderMax.defaultAuditSize = false。 http://www.greensock.com/loadermax-tips/ 以及专门论坛 http://forums.greensock.com
It looks like maybe you have a space (" ") at the end of the URL that you're passing into the ImageLoader.
Also, if you want to avoid the file size auditing, you can set LoaderMax.defaultAuditSize = false. There are some tips and tricks at http://www.greensock.com/loadermax-tips/ and dedicated forums at http://forums.greensock.com