Why not just remove the timer?
  ----- Original Message ----- 
  From: bjorn 
  To: [email protected] 
  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 
   

Reply via email to