[flexcoders] Re: stopping accodion animation

2010-07-12 Thread valdhor
Have a look at the TweenEvent.TWEEN_END, EffectEvent.EFFECT_END and 
TweenEvent.TWEEN_UPDATE events. They may send you in the right direction.

--- In flexcoders@yahoogroups.com, flexwdw flex...@... wrote:

 Hey all,
 
 I have to be able to dynamically remove children from an accordion container. 
  Problem is, this causes a crash when the animation that runs on the selected 
 child is running when I need to remove the panel.  I see no way to force this 
 animation to end or register for notification of it ending.  Am I missing 
 something?  Turning animation off is not an option.  I have worked around 
 this to try to ensure it is impossible for a selected child change to occur 
 anywhere near the remove child, but I would rather code this more defensively 
 if possible.
 
 thanks!
 
 (ps, I am using 3.5 targeting FP 10.0.0)





Re: [flexcoders] Re: stopping accodion animation

2010-07-12 Thread dorkie dork from dorktown
i *haven't* been able to get this to work but you may,

accordion.endEffectsStarted();

you can also set the openDuration to 0 when you remove the children. then
set it back after. its a style so use:

accordion.setStyle(openDuration, 0);


On Mon, Jul 12, 2010 at 8:03 AM, valdhor valdhorli...@embarqmail.comwrote:



 Have a look at the TweenEvent.TWEEN_END, EffectEvent.EFFECT_END and
 TweenEvent.TWEEN_UPDATE events. They may send you in the right direction.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 flexwdw flex...@... wrote:
 
  Hey all,
 
  I have to be able to dynamically remove children from an accordion
 container. Problem is, this causes a crash when the animation that runs on
 the selected child is running when I need to remove the panel. I see no way
 to force this animation to end or register for notification of it ending. Am
 I missing something? Turning animation off is not an option. I have worked
 around this to try to ensure it is impossible for a selected child change to
 occur anywhere near the remove child, but I would rather code this more
 defensively if possible.
 
  thanks!
 
  (ps, I am using 3.5 targeting FP 10.0.0)