Totally doable. You'd need to call ExternalInterface and retrieve or set variables using JavaScript. If inserted as a Web Object, you'd need to use DOM parent to jump up to the Storyline level. It's a little funny to use these structures to access variables going outside of a Flash container through the player API but it does work.
I'm very familiar with Flash, but a total newbie to Storyline. Might you be able to direct me to a tutorial that takes me through the steps you outlined above in a step-by-step fashion? When you say "call ExternalInterface and retrieve or set variables using Javascript", I'm a bit lost.
2 Replies
Totally doable. You'd need to call ExternalInterface and retrieve or set variables using JavaScript. If inserted as a Web Object, you'd need to use DOM parent to jump up to the Storyline level. It's a little funny to use these structures to access variables going outside of a Flash container through the player API but it does work.
var player=GetPlayer();
aVar=player.GetVar("storylineVar");
player.SetVar("storylineVar",externalVar);
Thanks for your reply, Steve.
I'm very familiar with Flash, but a total newbie to Storyline. Might you be able to direct me to a tutorial that takes me through the steps you outlined above in a step-by-step fashion? When you say "call ExternalInterface and retrieve or set variables using Javascript", I'm a bit lost.
Thanks again,
Mike
This discussion is closed. You can start a new discussion or contact Articulate Support.