You can have multiple HTTPServices, but I don't think you should.
Instead, use the AsyncToken. You can assign a identifier to each query
when you send it, and use that identifier in a switch statement in a
handler function to determine how to handle the result.  Or you can
directly assign a handler function to the AsyncToken.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: Saturday, December 16, 2006 7:09 AM
To: [email protected]
Subject: Re: [flexcoders] want to load multiple XML files to populate
various controls

 

Are you calling send() on each of the services? Are errors reported, or
does it just silently fail?

 

 

On 16/12/2006, at 9:33 AM, danj520 wrote:





can you have multiple instances of httpService?

Here is my code:

<mx:HTTPService id="adapSrv" url="data/adapters.xml"/>
<mx:HTTPService id="attenSrv" url="data/attenuators.xml"/>
<mx:HTTPService id="btSrv" url="data/biastees.xml"/>
<mx:HTTPService id="combSrv" url="data/combiners.xml"/>
<mx:HTTPService id="termSrv" url="data/terminations.xml"/>
<mx:HTTPService id="popSrv" url="data/popular.xml"/>

When run, app finds the "popSrv" path and loads the data, but won't 
find any other paths even though the files exist in their respective 
paths. Any help would be appreciated.

 

 

Reply via email to