Forum Discussion

GaryKenyon's avatar
GaryKenyon
Community Member
9 years ago

SL3 Javascript GetPlayer() function not defined in HTML5 output

Hi forum.

I created a game a while back for SL2, my external JS file gets and sets a bunch of Storyline variables using GetPlayer, SetVar and GetVar.

With the release of SL3, I have published this same game out, the Flash version works fine, the HTML5 version however, does not work. I am getting a ReferenceError on GetPlayer.

Does anyone know what the function to grab the SL player has changed to? I have gone through most of the given code, but I can't find any direct references to it anymore.

23 Replies