Control SL from Web object

Hi,

I have developed a small game in HTML and JS. The game is placed on a slide using Web object. So when it's published, it's an iframe, essentially. 

I want to issue JS commands from the game inside iframe to control what happens in the Storyline: set variables, restart slide, go to another slide. 

Here's what I achieved:
1. In HTML5, I can use GetPlayer() to get API and then set/get variables, restart/pause/resume slide etc. 
Question 1: what is the API command for navigating to a slide number X, next slide etc?

2. In Flash, I can use GetPlayer() to get the player object.

Question 2: How do I communicate with it then?

I don't need a step by step, just point me to a threat or documentation link.

Thanks! 

Be the first to reply