FLex 中的 XML 缓存问题 [英] XML Caching issue in FLex
本文介绍了FLex 中的 XML 缓存问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
private function loadGallery():void {
theSend.url = "http://localhost/userMana/file.xml";
theSend.send();
}
我在 Flex Tree 中调用这个 XML 并且它工作正常,但是在 XML 中更新后它不会更新回我的 TREE 除非我再次编译我的 flex 构建器.
I am calling this XML in Flex Tree and its works fine, but when after an update in XML it does not update back in my TREE unless i compile my flex builder again.
推荐答案
我通常通过将时间附加到 XML url 来做到这一点:
I usually do this by appending the time to the XML url:
var now:Date = new Date();
theSend.url = "http://localhost/userMana/file.xml?" + now.getTime();
theSend.send();
每次都不缓存.
这篇关于FLex 中的 XML 缓存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文