Yeah, I do that also. The thing is I display hundreds of these animations,
and it may take time to load the files they are loading. So if the user
switches view, I don't want to keep the animations running - even though
they are still loading in the background. It would be nice to just be able
to tell them to stop if they're not visible.



2008/6/25 Paul Andrews <[EMAIL PROTECTED]>:

>    You say that the animation plays while something is loading. When the
> something has loaded, stop the timer.
>
> Paul
>
>  ----- Original Message -----
> *From:* bjorn <[EMAIL PROTECTED]>
> *To:* [email protected]
>  *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 <[EMAIL PROTECTED]>
>> *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
>>
>>
>
>
> --
>
> ========================
> http://www.juicability.com - flex blog
> http://www.43min.com - funny movies
>
> 
>



-- 

========================
http://www.juicability.com - flex blog
http://www.43min.com - funny movies

Reply via email to