xinforeverxin 2014-07-03 03:26
浏览 1119

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);
}

这样就没法下载

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 SQL Server下载
    • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
    • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
    • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?
    • ¥15 python爬取bilibili校园招聘网站
    • ¥30 求解达问题(有红包)
    • ¥15 请解包一个pak文件
    • ¥15 不同系统编译兼容问题
    • ¥100 三相直流充电模块对数字电源芯片在物理上它必须具备哪些功能和性能?
    • ¥30 数字电源对DSP芯片的具体要求