FLex中的XML缓存问题

Kev*_*vin 0 apache-flex

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.

Joe*_*oks 6

我通常通过将时间附加到XML URL来执行此操作:

var now:Date = new Date();
theSend.url = "http://localhost/userMana/file.xml?" + now.getTime();
theSend.send();
Run Code Online (Sandbox Code Playgroud)

每次都不缓存.