Back buttons on Animate CC
- June 17, 2020
- 3 replies
- 1340 views
Ok, in short HELP! I am new to Animate CC but remember using Flash in the 90s, so that gives you an idea of my level 🙂 So, I've decided to start my education by doing a really complicated presentation on the HTML5 canvas. It involves layers with masks that slide over each other to change pages using buttons - In the attached (stop F7, 'forward_btn' play F8, stop F23,'forward_btn' play F39 etc). Thing is, I am using the actionscript wizard and that may be part of the problem! The forward buttons work perfectly but can't get any of the back buttons (eg. stop F23,'backward_btn' play F1) to work at all.
Below is the script I'm using from frame 104, which I got to by clicking a forward button on the intro batch on the timeline:
var _this = this;
/*
*/
_this.btnQ1_backward.on('click', function(){
/*
*/
_this.gotoAndStop(23);
});
I have checked all my instance names etc which are fine. Could it be that animate simply can't go back on a timeline? Or does the frame I want the button to go to need to have certain characteristics for it to work (ie. need to be a keyframe)?
There are no scenes, all layers are within one timeline. Just want the head to move forward and backward on that timeline depending on which buttons are clicked (ie. like creating an interactive prototype in XD).
I have attached the timeline - perhaps its a rookie error that is obvious there.
Apologies for my clumsy explanation, Googling tutorials is just not giving me this particular instance.
I just hope I have not done all the work only to find I can only move forward :-0
Thanks
Ashley
