Line 24: Use ignoreGlobalPause:true in the get() function, and then when you pause, it will just continue looping this tween
Line 33: The pause function is put straight into the html tag in this example.
A diary about programming problems - to help me more easily learn from (and Google) past mistakes.
Showing posts with label pause. Show all posts
Showing posts with label pause. Show all posts
Tuesday, 7 May 2013
Monday, 4 March 2013
EaselJS: Animation 2 (Pausing)
So apparently, you can tell Tick to pause, and it just keeps on going... But it will tell any animation that cares to know, that they should pause if they wish. Seems a bit odd, but maybe it will make sense later.
9) Adds a button below the canvas that will tell the Ticker it should/should not be paused.
5) The function that does the pausing/unpausing.
6) A variable that sets itself to be the opposite of Ticker's paused status.
7) Changes Ticker's paused status.
8) Changes the text on the button to say pause/unpause, accordingly.
1) Animates the normal circle.
2) Checks the pause status of the Ticker
3) Animates the pauseable circle, but only if the Ticker is not paused
4) Updates the image on the canvas - needs to be outside of the pausable code, or normal circle will keep going round, but you won't see it happening.
9) Adds a button below the canvas that will tell the Ticker it should/should not be paused.
5) The function that does the pausing/unpausing.
6) A variable that sets itself to be the opposite of Ticker's paused status.
7) Changes Ticker's paused status.
8) Changes the text on the button to say pause/unpause, accordingly.
1) Animates the normal circle.
2) Checks the pause status of the Ticker
3) Animates the pauseable circle, but only if the Ticker is not paused
4) Updates the image on the canvas - needs to be outside of the pausable code, or normal circle will keep going round, but you won't see it happening.
Subscribe to:
Posts (Atom)

