Start and Stop Animation obj using Javascript

  1. 7 years ago

    Hi,

    Having fun learning PubCoder. :)

    Is there anyway through just Javascript to start or stop an animation object? I realize I could use the 'Play Animation' action, but I would like to know if there is a way to control the animations through Javascript. For example have a Javascript to randomly play and stop animations.

    Or better yet, a way to play and stop only certain sections/frames of the animation object!

    Thanks

  2. Angelo S

    13 Jan 2017 Administrator

    Hi, there's not an easy way to do this. You can preview your page and use Debugger / Show on Desktop, to see what code PubCoder exports in actions.js to start/stop animations. Then you may copy/paste/edit the code at your needs and use it in Run Javascript actions

  3. Thanks Angelo,

    I had started doing that, but then thought that there might be an easier way. :)

    Love the program.

  4. Angelo S

    23 Jan 2017 Administrator

    Thanks Rob, we love it too ;-)

 

or Sign Up to reply!