开发者

Adobe Flex HTTPService AsyncResponder onResult handler fires twice?

开发者 https://www.devze.com 2022-12-18 19:39 出处:网络
My HTTPService resultHandler is firing twice.Is that normal? The messageId and token# are the same. StatusCode=200 both times.

My HTTPService resultHandler is firing twice. Is that normal? The messageId and token# are the same. StatusCode=200 both times.

I've examined the traffic in Fiddler and only one request is being submitted. Here's a code snippet; I've put a breakpoint on the service send() method and it is happening only once.

    var token: AsyncToken;
    var myResponder : AsyncResponder = new AsyncResponder(onResult, onFault);
    token=myHTTPService.send();   
    token.addResponder(myResponder);

    private  function  onResult(e:ResultEvent , token:Object=null):void {
        **// we enter this function tw开发者_如何学Cice**
    }


Turns out to be a bug. http://bugs.adobe.com/jira/browse/SDK-22883


I am facing this problem as well! I guess the solution is to move on to Flex3.5.. thats what the bug tracking page says when I saw it today 17/feb/2010

0

精彩评论

暂无评论...
验证码 换一张
取 消