2121 < h1 > EaselJS < em > Animation and Ticker</ em > </ h1 >
2222 < p >
2323 < strong > Synopsis:</ strong > Create a simple programmatic animation, and learn about the Ticker class.< br >
24- < strong > Topics:</ strong > animation, Ticker, setFPS , timingMode, getTime, setPaused ,
24+ < strong > Topics:</ strong > animation, Ticker, framerate , timingMode, getTime, paused ,
2525 requestAnimationFrame, Stage.update, time based animation< br />
2626 < strong > Target:</ strong > EaselJS v0.6.0 and above
2727 </ p >
@@ -84,8 +84,8 @@ <h2>Ticker</h2>
8484 </ p >
8585 < textarea class ="brush: js; " readonly >
8686// these are equivalent, 1000ms / 40fps = 25ms
87- createjs.Ticker.setInterval(25) ;
88- createjs.Ticker.setFPS(40) ;
87+ createjs.Ticker.interval = 25 ;
88+ createjs.Ticker.framerate = 40 ;
8989 </ textarea >
9090 < p >
9191 Let's combine all of that to make a circle move across the stage at 30 frames per second. And don't
@@ -176,7 +176,7 @@ <h2>Timing Modes</h2>
176176 </ p >
177177 < textarea class ="brush: js; " readonly >
178178createjs.Ticker.timingMode = createjs.Ticker.RAF_SYNCHED;
179- createjs.Ticker.setFPS(30) ;
179+ createjs.Ticker.framerate = 30 ;
180180 </ textarea >
181181 </ section >
182182
@@ -186,7 +186,7 @@ <h2>Pausing</h2>
186186 </ header >
187187 < p >
188188 < code > Ticker</ code > also provides the ability to pause all of your animations. All listener you add to
189- Ticker are "pauseable". Calling < code > Ticker.setPaused( true) ;</ code > will stop < code > Ticker</ code > from
189+ Ticker are "pauseable". Calling < code > Ticker.paused = true;</ code > will stop < code > Ticker</ code > from
190190 calling < code > tick</ code > on all pauseable listeners.
191191 </ p >
192192 < p >
@@ -198,7 +198,7 @@ <h2>Pausing</h2>
198198 green "unpauseable" circle does not. You can also see how the total pauseable time stops updating when
199199 < code > Ticker</ code > is paused.
200200 </ p >
201- < iframe src ="pausing.html " class ="demo " data-description ="showing Ticker.setPaused() at work. Click to toggle pause. " width ="100% " height ="245px "> </ iframe >
201+ < iframe src ="pausing.html " class ="demo " data-description ="showing Ticker.paused at work. Click to toggle pause. " width ="100% " height ="245px "> </ iframe >
202202 </ section >
203203
204204 < section >
0 commit comments