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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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