PDA

View Full Version : Transition Finished Event


blockage
09-08-2006, 11:06 AM
This is a question about using the mx.states.Transition class...

Anyone know if there's any way of knowing when a transition has completely finished? I'd like to be able to hide certain elements during a state transition and show them again when the transition has finished.

I'm guessing this is an easy one, but I can't see anything the documentation.

Tink
09-08-2006, 11:13 AM
A Transiton will have and Effect object inside it. You can add a listener to this Effect.

effect.addEventListener( Effect.effectEnd, onEffectEnd );

blockage
09-08-2006, 01:09 PM
thx