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 builder。
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屋!
查看全文