I think you should plan the application better, if instantiation of the
component is hitting the service and you are intended to use it again and
again, then its better to hit the service on the creation complete of its
container.

Considering, you cannot do so because of the constraints, then you have to
add a custom property to your custom component,

eg var shouldHitHTTP:Boolean

check this before hitting the service.
Keep it true only for one instance and false for rest of them.

Result you can hold in the singleton object and can bind it to all your
custom components.



On Tue, Nov 3, 2009 at 3:59 PM, Kiran Kumar Vasireddy
<[email protected]>wrote:

> Hi ,
>
> I am calling httpservice.send() method and getting the data and populating
> it in XMLList . I want this step to be done only once and want to reuse the
> data what ever I got .
> My scenario is like this
>
> 1)Creating Custom combobox component
> 2) Calling send() in the custom component and populating the combobox
>
> I want to create around 5 instances of the above component . But what is
> happening is the send() is getting called again and again . Is there any way
> to restrict this and get the data only once and use it for my 5 instances .
> The problem here is If I use http send() method when I load the application
> , This works perfect . But we want that to be called only from component and
> want to use the same component again and again.
>
> Thanks for your help
> Kiran
>
> >
>


-- 
Thanks,
Vaibhav Seth.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to