Hi Guys, I’m trying to create a play, pause and a timeline scrubber for an animation that is created in adobe animate and i import it in Hype through the HTML Widget. I know there are more simple ways doing this by importing the animation as a mp4 and it’s easier to make control button for mp4. So is there a way to control the timeline that is in the HTML Widget?
That sounds very redundant using Adobe animate in Hype. Much like a Russian doll
In general you can communicate across iframes using postMessage in JS. Hype GlobalBehavior uses this technic to broadcast across iframes. As postMessage needs to have a receiver and sender you need to define the function handler and emitter in the host and iframe.
With Hype GlobalBehavior you have this implemented out of the box but it is only used to forward the simple custom behavior string. If you need a more complex setup with function calls with complex parameters you’d have to implement this yourself.
Also you could try to put the two into the same document scope without the iframe barrier. Then one could directly trigger the opposing API.