Jump to content

Tween onUpdate


Recommended Posts

I've just been playing around with some tweens, and was hoping to do something on the update of one of them...


tween1.onUpdate.add(this.updateItem, this);

generates the error:

Uncaught TypeError: Cannot read property 'add' of undefined


I can see from the docs (& source) there is reference to onUpdateCallback, and so I'd expected it to work int he same way as onStart and onComplete.


(I have also tried setting onUpdateCallback directly, but this hasn't helped).


Any idea where I'm going wrong?


Link to comment
Share on other sites

  • 3 years later...

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...