A
A
Alexander Flasher2014-07-21 11:08:55
ActionScript
Alexander Flasher, 2014-07-21 11:08:55

How to pause timer in actionscript 3

There is a flash drive with animation that stops when the focus of the browser window is lost. In a flash, certain actions take place at specified time intervals. When the browser window loses focus and the animation stops, all unfinished timers must be "paused" so that they do not work while the window with the flash drive is not in focus.
Putting marks on the timeline is not an option, the time is transmitted through flashvars and can be different, and there can be a video in place of the animation.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Porcelain, 2014-07-30
@Porcelain

Loop through all movie clips (including nested ones) and call their stop() method.
In the future: stop programming in Flash Pro (by the phrase "marks on the timeline" I concluded that you are using it); use greensock's timeline -type tools , which provide more dynamic control over animations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question