The various urls have function that call a specific responder but all
the function go like this.
I didn't set these up just trying to fix the problem.
But seems like you'd want to keep a handle on something, service,
responder, AsyncToken.
How does flash manage these connections?
Thanks,
Joe
public function loadURL( url : String ) : void
{
var service : HTTPService = new HTTPService();
service.url = url;
service.resultFormat = "e4x";
var responder : GenericResponder = new
GenericResponder( URLResult,
genericFault );
var call : AsyncToken = service.send();
call.addResponder( responder );
}
Handler:
protected function URLResults(event : ResultEvent):void
{
ModelLocator.getInstance().Manager.Data = event.result
as XML;
}
--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> We'll need to see some code.
>
>
>
> By the way, you can use a single HTTPService instance for multiple
> urls/calls by using the AsyncToken
>
>
>
> Tracy
>
>
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of kuroiryu42
> Sent: Thursday, November 08, 2007 11:31 PM
> To: [email protected]
> Subject: [flexcoders] HttpService gets wrong handler
>
>
>
> Here is the set up.
>
> App calls
>
> foo( url1 );
> foobar( url2);
>
> Both foo and foo bar set up call new HttpService and make thier
> respective requests.
>
> foo has fooResultHandler and fooFaultHandler
> foobar has foobarResultHandler and foobarFaultHandler
>
> For some reason foobarResultHandler is getting foo's result!
>
> help.
>
> Thanks
>