Play Timeline from External Javascript

Only just beginning to explore Animate so apologies if this is obvious (I know it must be simple) but I can’t seem to get the syntax right.

I want to start/play the main timeline using javascript on a button in normal html, that is, external to the Saola document. I’ve tried using getElementByID but it doesn’t seem to find the timeline as something I can then use .play() with. I’ve tried accessing the Saola functions with the topDocs syntax I found on here but to no avail.

Any suggestions gratefully received.



Saola Animate version: 2.7.1

OS: WIndows10

Hi Paul,

It’s the same principle as Opus except instead of accessing _DWPub you have to access AtomiSaola from either the main window or the iFrame.

So the code looks like this:



Thanks Russell, spot on as always.

Not sure why my variation on that didn’t work. Probably trying to be too clever with my rusty javascript. But that’s what I needed.

Many thanks.