Animate CC HTML5 Canvas: Fire function on frame access?
I have a function that resets the position of a MC, that does not do what I expect:
function reset_mark() {
this.mark.x = 1200;
this.mark.y = -15;
}
Which I call from various frames via:
reset_mark();
I have also tried:
this.reset_mark();
MovieClip(root).reset_mark();
this.MovieClip(root).reset_mark();
But none seem to work... am I missing something painfully obvious? I wouldn't be surprised.
Thanks.
