Note that you really need only a single instance of HTTPService.  You
can set the url, method, etc and build the request object using AS, and
can handle the result conditionally using AsyncToken.

 

Post if you need examples.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of gers32
Sent: Monday, November 26, 2007 6:30 AM
To: [email protected]
Subject: [flexcoders] Re: HttpService not called the first time

 

Being a Flex newbie, I can only think of one way to solve this dilemma
(assuming I ever encounter performance problems at startup):

I thought it was a good idea to implement each HttpService in the
Component that displays the retrieved data, which is saved to an
application-wide Model, accessible to all Components. One solution
would be to centralize all HttpServices in the main application file;
they would populate the Model in the same way, but not require the
existence of their corresponding Components.

I'm sure there are better solutions out there... Thanks,

Chris.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Defeat deferred instantiation judiciously, if at all. It is an easy
> fix, but has consequences. Better practice is to use binding or your
> own event system to reference data at the right time.
> 
> 
> 
> Tracy

 

Reply via email to