HTML5 Canvas access.
April 5, 2020 12:00 AM
Hello,
I have a simple Adobe Animate animation with a stop on the first and last frame of animation. I've added it to Lectora via Web Window and added a button to the stage. I would like to start the animation inside the the Web Window when I press the Lectora button. Is that possible? Im attaching the Lectora file for reference.
Thank you,
Tom.
Discussion (5)
It's possible:
document.getElementById("webwidget117iframeundefined
"webwidget117" should be replaced with the html name of the Web Window.
Thank you Tim, you've been wonderfully helpful! Works like a charm.
Hello Tim,
I do have have a follow up question. How would that code change if I published to seamless play? I think that's going up another level.
Would it be parent.document.getElementById("webwidget117iframeundefined
Thank you.
Yes, that should work. Even better would be:
getDisplayDocument().getElementById("webwidget117iframeundefined
Then it works both ways, with and without seamless play.
Discussions have been disabled for this post