Sure, but not in the way you are used to. You need to think of variables like remote controls that can be used to trigger certain things in Storyline.
For example, imagine I have a rectangle in SL that has two states, one called Red and one Blue.
I could set up some triggers in SL to change the state of the rectangle to Red when variable Whatever changes if that variable is equal to Red. Then I could have another trigger that changes it to Blue when variable Whatever changes if the variable is equal to Blue.
Then, to control this via JavaScript, I'd just push the correct variable value to SL.
Nice idea, but Variables will be communicator between Articulate Storyline and Javascript. Can we use any other way to communicate for Articulate Storyline and Javascript?
6 Replies
No, you can't. All you can really do is get and set variables. See this doc for info.
Thanks for reply Matthew. Can we control the elements of screen using javascript? Element like Rectangle, Audio, Video images etc.
Sure, but not in the way you are used to. You need to think of variables like remote controls that can be used to trigger certain things in Storyline.
For example, imagine I have a rectangle in SL that has two states, one called Red and one Blue.
I could set up some triggers in SL to change the state of the rectangle to Red when variable Whatever changes if that variable is equal to Red. Then I could have another trigger that changes it to Blue when variable Whatever changes if the variable is equal to Blue.
Then, to control this via JavaScript, I'd just push the correct variable value to SL.
Does that make sense?
Nice idea, but Variables will be communicator between Articulate Storyline and Javascript. Can we use any other way to communicate for Articulate Storyline and Javascript?
Not that I am aware of, no.
Hi Ravindra,
I'll readily admit that Javascript is not my area, but we did have a new guest article on Javascript that I wanted to link to here as well.