You say that the animation plays while something is loading. When the something has loaded, stop the timer.
Paul ----- Original Message ----- From: bjorn To: flexcoders@yahoogroups.com Sent: Wednesday, June 25, 2008 4:17 PM Subject: Re: [flexcoders] .visability = true, but is it "viewable"? The timer is used to update the animation. I need to know when to stop it. 2008/6/25 Paul Andrews <[EMAIL PROTECTED]>: Why not just remove the timer? ----- Original Message ----- From: bjorn To: flexcoders@yahoogroups.com Sent: Wednesday, June 25, 2008 2:01 PM Subject: [flexcoders] .visability = true, but is it "viewable"? I have an animation that is displayed using a timer while something is loading. When this animation isn't visible, I don't want the timer to keep updating the animation. I've overridden the set visible( value:Boolean ) function and stop the animation if visible is set to false; but the problem is that visible=false doesn't happen e.g. if a ViewStack change occurs causing the animation to be hidden. If I check the .visible flag in the timer event I see that the component is still visible (but it's not displayed since it's hidden). Checking with "Show redraw regions" confirms that it is running in the background. -- ======================== http://www.juicability.com - flex blog http://www.43min.com - funny movies -- ======================== http://www.juicability.com - flex blog http://www.43min.com - funny movies