jump to specific slide using javascript
I'm working on a project and I want to create a "menu" in adobe animate CC with some animations and three buttons (one for each chapter).
As of now everything is working but I want to tweak it a little because every time I'm adding a slide or removing one in captivate (client wants to make changes as we're working and I know I can wait until the slides are finished to change the numbers but I just want to know if its possible for future projects) I have to go back to Animate CC and change the slide numbers I want to jump to while clicking any of the chapter buttons.
My question is: is it possible to use a go to slide name instead of number?
right now I'm using this for my first chapter button in animate:
this.chapter1_btn.addEventListener("click", fl_MouseClickHandler.bind(this));
function fl_MouseClickHandler()
{
window.parent.cpAPIInterface.
gotoSlide(2)
}
if it's possible to go to a named slide instead of a slide number I could name the slides to chapter_1, chapter_2 and chapter_3, publish the oam file and import it in captivate and then ad or remove content slides within that chapter without going back and changing the slidenumbers i want to jump to in Animate CC.
*the "2" in the "gotoSlide(2)" is actually slide three in captivate, not sure why it is the slidenumber - 1.
/Johan
