On Wednesday 06 December 2006 17:06, Brian Holmes wrote:
So I was wondering where and how other people are managing this kind of
logic.
Use a creationComplete event on each sub-view to fetch data for that view.
creationComplete only gets fired on the first show of a component.
--
Tom
Yeah, I understand the creation complete event, and it doesn't always
work for what I'm trying to accomplish. For data that's fairly static,
such as a list of departments that's used in a lot of different views, I
want to get the data once. I could do it at the top level,
mx:Application tag, but
Your plan sounds like a good one to me. For extra efficiency, you
might also want to keep track of what calls you have pending. For
instance, you may have issued a call to get the data but it has not
yet arrived. Just depends on how nice you want to be to your server.
Cheers,
Lach
On
3 matches
Mail list logo