A hide effect should reset the visible to true and back to false after
the effect ends so capturing hide should still work for you.  Maybe some
logic about whether it gets set to false and true in the same frame can
further filter out what you need.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Monday, May 21, 2007 7:47 AM
To: [email protected]
Subject: [flexcoders] Catching all EFFECT_ENDs?

 

I know I can listen for all ADD events via the following:

systemManager.addEventListener(FlexEvent.ADD, onEvent, true);

However, I would like to listen for all EFFECT_END events as well.
I've tried:

systemManager.addEventListener(EffectEvent.EFFECT_END, onEvent, true);

It doesn't seem to catch anything. I would assume it is because the
event is thrown from the Effect not the component, right? Can anyone
explain a way to do this? I'm trying to get notified when a parent of
my component is set invisible and it works fine unless there is an
effect on hide in which case it still thinks it's visible until the
effect ends.

 

Reply via email to