Forum Discussion
SebastienGreffe
12 years agoCommunity Member
WebObject and Storyline Variable
Hi!
I have a problem, I need to use a webobject with my project, but my webobject needs some informations. So, I put them in variables in Storyline and now my problem is how I can give them in th...
SteveFlowers
11 years agoCommunity Member
One way to avoid having to edit external files is to add a JS trigger to the master slide. You can either write an include to the header or write window level functions that can be called later. I don't mind doing surgery after publish but it gets to be a bummer doing it every time.
window.getVariable=function(vName)
{
var player=GetPlayer();
var myVar = player.GetVar(vName);
return myVar;
}
window.setVariable=function(vName,vValue)
{
var player=GetPlayer();
var myVar = player.setVar(vName,vValue);
return myVar;
}