Forum Discussion
JimOwen-707d222
2 years agoCommunity Member
Javascript not being called
Hi, I am not conversant in JS, but have copy-pasted a script to be executed when timeline starts on a slide. However, it looks as if it is not being called at all.
The Trigger is "When timeline s...
Jürgen_Schoene_
2 years agoCommunity Member
there are two small errors in the script
with a really strange error message in the console (-> F12)
here the correct version
var player=GetPlayer();
player.SetVar("varRandom", Math.floor((Math.random()*1000)+1));
alert("It is " + player.GetVar("varRandom"));
Jürgen