Flex ~ send http request ~ HTTPService

傳url後面要帶亂數GET參數

不然他不會重新request~~~~會取cache~XD

public function sentBehavior(i:int):void
{
var myHttp:HTTPService;
myHttp = new HTTPService();
myHttp.url = 'http://localhost:1234/test3.php?o=' + Math.random().toString();
myHttp.addEventListener(ResultEvent.RESULT, qqq);
myHttp.send();
}

public function qqq(event:ResultEvent):void
{
trace(event.result);
}

http://blog.riaproject.com/flex/82.html

沒有留言:

發佈留言