Variables with Inserted Web Object/Flash

Apr 22, 2014

I'm experimenting with inserting an activity created in Flash into a Storyline project via the "Insert Web Object" or "Insert Flash" options.

Is there a way my inserted Flash activity can access variables declared within Storyline?   

Thanks!

Mike

2 Replies
Steve Flowers

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);

Mike Fox

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.