Most folks use the Viewstack's change event.  You don't want to wait
until they are displayed to update them, you want to do it just before,
which is when the viewstack is changing.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of andrew.0000
Sent: Tuesday, August 12, 2008 5:39 PM
To: [email protected]
Subject: [flexcoders] what is a reliable way to know when your component
is re-displayed

 


What is a reliable way to know when your component is displayed? The
show event is only called when a component goes from visible=false to
true. The creationComplete event is only once. My problem is I have
various views (forms basically) nested in all sorts of crazy
viewstacks and so on, and I just want them to initialize themselves
when they are shown. Problem is I can't really just drive them "from
outside" when I show them, cause they always seem null, or parts of
them are when I make them visible (usually by some viewstack change)
IE defered instantiation issues. I would like the component to throw
an event when it is displayed and clear it self out, re-fetch data,
etc, but I don't see a good event. 

 

Reply via email to