Multiple javascript actions on button click
Hi,
I'm new to Adobe Animate and I don't know Javascript but I've been using the wizard to add some basic functionality and everything has worked so far. But now I need multiple things to happen on 1 button click as follows:
- Go to the next frame and play next 20 frames
- Then go to the main timeline and go to a frame and play
I'm using a Movie Clip and this is the code I have right now, but I can only get it to do one or the other, it's ignoring the first action.
var _this = this;
_this.btn_emotional_reduced.on('click', function(){
_this.gotoAndPlay('currentFrame + 1');
_this.parent.gotoAndPlay('test');
});
Any help would be greatly appreciated. Thanks!
