Forum Discussion
'Jump To Slide' method for Storyline?
Does the Storyline player have a public method for jumping to a particular slide?
We are creating a wrapper for Storyline activities and would like to send a JavaScript call to the Storyline player to jump to a particular slide. For example, something along the lines of:
var player = GetPlayer();
player.GoToSlideNumber(8);
Is something like this possible to do with Storyline?
- Jürgen_Schoene_Community Member
GetPlayer() has only two functions: GetVar, SetVar - nothing else
- JeffSimsCommunity Member
Thanks Jürgen, I noticed this as well and was just checking if anyone has figured out some way of accomplishing this?
The only similar trick I've seen is where you could set a variable, then have a trigger to jump to a slide when the variable changes. But it seems you'd have to make a trigger for every possible slide to jump to. Or is there some way to pass in the number of the slide to jump to?
for example:
SetVar("goToSlide",8)
then have a Trigger for whengoToSlide
changes, with an action to Jump to Slide numberx
(whatever number is sent)... or similar. - WaltHamiltonSuper Hero
This discussion may give you an idea: https://community.articulate.com/discussions/articulate-storyline/setting-a-variable-in-the-story-html-file
Of course, you need a trigger for every jump possibility, but that solution is a design question. Surely you can design it so not every slide is a legitimate starting point.