private function loadGallery():void {
theSend.url = "http://localhost/userMana/file.xml";
theSend.send();
}
Run Code Online (Sandbox Code Playgroud)
我在Flex Tree中调用这个XML并且它的工作正常,但是在XML更新后,它不会在我的TREE中更新,除非我再次编译我的flex builder.
我通常通过将时间附加到XML URL来执行此操作:
var now:Date = new Date();
theSend.url = "http://localhost/userMana/file.xml?" + now.getTime();
theSend.send();
Run Code Online (Sandbox Code Playgroud)
每次都不缓存.
| 归档时间: |
|
| 查看次数: |
467 次 |
| 最近记录: |