flex 拓扑图日记,解决缓存的另一个办法

来源:互联网 发布:c语言temp是什么 编辑:程序博客网 时间:2024/05/18 03:09

flex的沙盒限制,大部分的资源都要发布成网络资源,请求这些资源的时候会有缓存的问题。

可以给url加随机的参数。

 

    httpService = new HTTPService();
    httpService.useProxy = false;
    httpService.method = "post";
    httpService.resultFormat = "e4x";
    httpService.url = "jsp/saveToXml.jsp?math="+Math.random();
    httpService.addEventListener(ResultEvent.RESULT,getMessage);

原创粉丝点击