Forum Discussion
Issue with Execute JavaScript Trigger in Storyline 360
Script not defined often occurs when there is a syntax error like unbalance braces. I know the code listed here seems correct, but make sure the code in your SL project is not missing any bits.
Aside from that, what is GetPlayer().GetCurrentSlide().GetSlideNumber()? There are no such functions within GetPlayer(). The production player has the following:
GetVar() and SetVar() are really the only useful entries for most users.
If you want the slide number within the scene, starting with 1, you can use the built-in Scene.SlideNumber variable. Note, you must first assign this to a user-defined variable to access it from JavaScript via GetVar().
Try substituting the value 1 as the argument to your setTexts function until you get everythign else working as it should, then worki on getting the slide numbers.