Adobe Flex HTTPService AsyncResponder onResult handler fires twice?
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
精彩评论