Forum Discussion

AndrewHoskins-e's avatar
AndrewHoskins-e
Community Member
4 years ago

JavaScript Capabilitites

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!

  • I am very much a JS novice, but I found a KB article that may be helpful.

    And this might also be something that would interest you, I found it here

     

    Hope it helps :)

    Clara

  • 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.