[flexcoders] Exit effect for popup when being removed
Hi, What's the best way to have a popup menu play an exit effect when it is about to be removed by PopUpManager.removePopUp? Should we play the effect first (say dissolve or wipe up), then on effect end call removePopUp, or is there a more direct / simpler way? - boon
Re: [flexcoders] Exit effect for popup when being removed
Sorry, forgot to mention, the effects exit code has to be in a method body of actionscript code (as in effect.play( ), .etc.) when the popup is being removed, instead of just associating an effect instance with the removedEfffect style. I have tried listening to FlexEvent.REMOVED and run the exit effect handler there but that doesn't seem to work. - boon --- On Tue, 8/26/08, Boon Chew [EMAIL PROTECTED] wrote: From: Boon Chew [EMAIL PROTECTED] Subject: [flexcoders] Exit effect for popup when being removed To: flexcoders@yahoogroups.com Date: Tuesday, August 26, 2008, 6:11 PM Hi, What's the best way to have a popup menu play an exit effect when it is about to be removed by PopUpManager. removePopUp? Should we play the effect first (say dissolve or wipe up), then on effect end call removePopUp, or is there a more direct / simpler way? - boon
RE: [flexcoders] Exit effect for popup when being removed
I'd consider hide effect then removal From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Boon Chew Sent: Tuesday, August 26, 2008 6:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Exit effect for popup when being removed Sorry, forgot to mention, the effects exit code has to be in a method body of actionscript code (as in effect.play( ), .etc.) when the popup is being removed, instead of just associating an effect instance with the removedEfffect style. I have tried listening to FlexEvent.REMOVED and run the exit effect handler there but that doesn't seem to work. - boon --- On Tue, 8/26/08, Boon Chew [EMAIL PROTECTED] wrote: From: Boon Chew [EMAIL PROTECTED] Subject: [flexcoders] Exit effect for popup when being removed To: flexcoders@yahoogroups.com Date: Tuesday, August 26, 2008, 6:11 PM Hi, What's the best way to have a popup menu play an exit effect when it is about to be removed by PopUpManager. removePopUp? Should we play the effect first (say dissolve or wipe up), then on effect end call removePopUp, or is there a more direct / simpler way? - boon