2 xinforeverxin xinforeverxin 于 2014.07.03 11:26 提问

FlexFileReference.download()无法下载

这样没问题
protected function save_clickHandler(event:MouseEvent):void
{
ownloadURL = new URLRequest();
file = new FileReference();
configureListeners(file);
downloadURL.url = "http://localhost:8080/radar/TempGif/1404293551085.gif";

file.download(downloadURL);
}
-------------------------分割线-------------------
protected function save_clickHandler(event:MouseEvent):void
{
o = remote.getOperation("creatGIF");
o.send(data,"radar",delayTime);
//监听调用成功事件

o.addEventListener(ResultEvent.RESULT,creatGif);
}
private function creatGif(event:ResultEvent):void {
o.removeEventListener(ResultEvent.RESULT,creatGif);

var gifURL:String=event.result as String;
downloadURL = new URLRequest();
downloadURL.url = gifURL;
file = new FileReference();
configureListeners(file);
file.download(downloadURL);
}

这样就没法下载

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!