Skip to main content
ChiknPollo
Participating Frequently
October 8, 2019
Question

Navigate to the next slide with a button inside a Web object or HTML5 Animation

  • October 8, 2019
  • 0 replies
  • 770 views

UPDATE:

Found the answer here:

https://community.adobe.com/t5/Captivate/Javascript-go-to-next-slide-from-Web-Object/td-p/9515980

 

******

Hi! I need to have a button inside an HTML5 animation (oam) or web object which makes the parent window (Captivate) navigate to the next slide. I've seen this working in Storyline with a button inside an HTML5 object which triggers this javascript function when clicked:

Function next(hypedocument, element, event) {

console.log("go to next");

var player  =  parent.GetPlayer(); /* player */

player.SetVar ("next",Math.floor((Math.random() * 100) + 1));

}

 

The user needs to navigate an interactive HTML5 animation in a slide before proceeding to the next one, so that's why I need the button inside the web object to tell Captivate to go to the next slide.

Many thanks in advance for your help.

 

    This topic has been closed for replies.