Skip to content
Browse files

Updated tick usage in examples

Signed-off-by: Lanny McNie <lanny@gskinner.com>
  • Loading branch information...
1 parent 36aa491 commit bd351f893284529f981f1b27e53c56ea89670ebc @lannymcnie lannymcnie committed
Showing with 5 additions and 5 deletions.
  1. +2 −2 examples/Tween_Circles.html
  2. +3 −3 examples/Tween_SparkTable.html
View
4 examples/Tween_Circles.html
@@ -78,8 +78,8 @@
activeCount--;
}
- function tick() {
- if (activeCount) { stage.update(); }
+ function tick(event) {
+ if (activeCount) { stage.update(event); }
}
View
6 examples/Tween_SparkTable.html
@@ -182,7 +182,7 @@
run(selectedFunction);
}
- function tick() {
+ function tick(event) {
if (bar.x != oldX && !resetRuninng) {
var g = currentClip.graphics;
var pt = new createjs.Point(container.x+prevPoint.x, container.y+prevPoint.y);
@@ -203,9 +203,9 @@
g.drawCircle(pt.x, pt.y, 2);
g.endFill();
- stage.update();
+ stage.update(event);
} else if (resetRuninng) {
- stage.update();
+ stage.update(event);
}
oldX = bar.x;
}

0 comments on commit bd351f8

Please sign in to comment.
Something went wrong with that request. Please try again.