Control timeline from HTML

Hi. How can I control the timeLine of my Wick from HTML.
I´d like to have some HTML links like gotoAndPlay(), gotoAndStop() or play()

Thanks!

I would try to put the timeline reference in a window variable to see if you can control it externally.

// Within Wick Editor
window.wTimeline = project._children[0];


// Outside Wick try
wTimeline.play();
2 Likes

Excellent, Jovanny! It worked!

Full answer if somebody needs it:

// WICK, first frame, OnLoad
window.wTimeline = project._children[0];

// HTML
<button onclick="wTimeline.play();" >PLAY </button >
<button onclick="wTimeline.gotoAndPlay(26)" >FRAME 26 </button >
<button onclick="wTimeline.gotoAndPlay('FameName')" >FRAME NAME</button >

3 Likes