7 Replies Latest reply on Mar 5, 2018 12:32 PM by markr17328370

    Animate CC HTML5 Canvas: Fire function on frame access?

    jeffery wright Level 1

      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.