I want to user jquery for some custom functionality (basically some plugins). Now I'd like to communicate with the player (swf) itself, is there a simple way to do that? I have tried to user player = GetPlayer() and then player.SetVar("somevar", "test123"); but I always get the error that SetVar is not a function. Many thanks in advance!
2 Replies
var player=GetPlayer();
player.SetVar("storylineVar","Value123");
This should work. Works for me when there's a variable in Storyline corresponding to the name passed in the first argument.
Thanks. I needed to use $(document).on('load') instead of $(document).on('ready'), then the function was available.
This discussion is closed. You can start a new discussion or contact Articulate Support.