charlie_says Posted May 8, 2014 Share Posted May 8, 2014 I've just been playing around with some tweens, and was hoping to do something on the update of one of them...But, 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 More sharing options...
charlie_says Posted May 8, 2014 Author Share Posted May 8, 2014 Must have been having "a moment"tween1.onUpdateCallback(this.updateItem, this);works fine. Link to comment Share on other sites More sharing options...
MaraRoses Posted November 28, 2017 Share Posted November 28, 2017 And if i want to pass some parameter for checking frames and return some signal? this.slideTween.onUpdateCallback(this.updateItem, this) Link to comment Share on other sites More sharing options...
Recommended Posts