I know we can create variables inside Storyline and store their data throughout the course, but I noted that whenever I create a variable in javascript and execute it at the start of the timeline, I couldn't access it(the variable) on the end of the same slide on javascript execution?
Is there any way to create a pure javascript variable and access to its data using only javascript?
For example, I want something like this :
At timeline start I execute a javascript code:
var javascriptVar = 360;
and at the end of that slide or another slide I execute another javascript code to bring javascriptVar value back to Storyline :
Each time you run javascript it runs separately so you would have to look at storing the variable in storyline at the beginning and collecting it at the end and then storing it again.
Or running a function that periodically updates a storyline variable.
2 Replies
Are you trying to run a timer?
Each time you run javascript it runs separately so you would have to look at storing the variable in storyline at the beginning and collecting it at the end and then storing it again.
Or running a function that periodically updates a storyline variable.
Thank you, I got it...
This discussion is closed. You can start a new discussion or contact Articulate Support.