Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #441832 Score: 0
    Profile photo of Tom Brodowski
    Tom Brodowski
    Member
    beginner
    intermediate
    friend finder
    curious george
    contributor
    wise owl
    picture perfect
    LUC17 Attendee
    profile
    5 pts
    @tbrodowski6367

    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.

    Attachments:
    1. animate.zip
    #441839 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    346 pts
    @timk

    It’s possible:

    document.getElementById("webwidget117iframe").contentWindow.exportRoot.play();

    “webwidget117” should be replaced with the html name of the Web Window.

    #441867 Score: 0
    Profile photo of Tom Brodowski
    Tom Brodowski
    Member
    beginner
    intermediate
    friend finder
    curious george
    contributor
    wise owl
    picture perfect
    LUC17 Attendee
    profile
    5 pts
    @tbrodowski6367

    Thank you Tim, you’ve been wonderfully helpful!  Works like a charm.

    #441901 Score: 0
    Profile photo of Tom Brodowski
    Tom Brodowski
    Member
    beginner
    intermediate
    friend finder
    curious george
    contributor
    wise owl
    picture perfect
    LUC17 Attendee
    profile
    5 pts
    @tbrodowski6367

    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("webwidget117iframe").contentWindow.exportRoot.play();

    Thank you.

    #441904 Score: 1
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    346 pts
    @timk

    Yes, that should work. Even better would be:

    getDisplayDocument().getElementById("webwidget117iframe").contentWindow.exportRoot.play();

    Then it works both ways, with and without seamless play.

    This post has received 1 vote up.
    #441906 Score: 0
    Profile photo of Tom Brodowski
    Tom Brodowski
    Member
    beginner
    intermediate
    friend finder
    curious george
    contributor
    wise owl
    picture perfect
    LUC17 Attendee
    profile
    5 pts
    @tbrodowski6367

    Thanks Tim, you’re the best.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.