JavaScript Capabilitites

Sep 30, 2021

This is just a general question regarding what javascript can and cannot do in Storyline 360.  

I have seen javascript used to create player controls on videos that only show when the user hovers over the video.  I have seen javascript used in tandem with triggers to create a sound on/off button outside of the player option. 

I am wondering, what limitations are there with javascript in Storyline 360?  Could it be used to recreate any of the built in player options if I wanted to create a custom player?  If so, what would be the best way to go about this and are there any research options that I could be directed to?

Thanks!

3 Replies
Math Notermans

You can. Anything is possible in Storyline with Javascript. Scope is your biggest issue in Storyline. As each trigger and each slide exist in its own scope, you cannot target functions and variables you make in 1 trigger in another. Offcourse you can solve that but thats more complicated then just copying/pasting existing Javascript code into a trigger.