The main container in each tab is set to visible=false, so SHOW/HIDE
events should work there.  They don't work the first time you go to that
tab though.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Monday, September 03, 2007 7:48 AM
To: [email protected]
Subject: [flexcoders] How to tell when a control is no longer being
drawn?



Hi, does anyone know how you can tell when a control is no longer being
drawn?

e.g. If I change from Tab0 to Tab1 on a TabNavigator control, the
original canvas is no longer drawn (but obviously it's visible property
is still set to true). So how does that canvas know not to draw? I would
like to remove event listeners while my control is not visible, and then
re-add the event listeners when it becomes visible again (I say visible
lightly, I mean added / removed from the drawing list).

Any ideas?

Mark

 

Reply via email to