3D FlipBook - Autoplay

m***l@innovations.at
2019-08-12
2019-08-13

Hello!

1) How can i put a PDF to autoplay, so that it automatically turns the page after XX seconds? 2) How can i get an Event when the last page ist shown?

Thank you in Advance!

Kind regards, Christian Holzmann

Replies

a***r@3dflipbook.net
2019-08-13
2019-08-13

Hi,

Use ready function http://3dflipbook.net/documentation#general-approach

function ready(scene) {
  scene.ctrl.addEventListener('endFlip', function() {
    console.log(scene.ctrl.getPageForGUI());
  });
}
//and
scene.ctrl.goToPage(n);// n = 0..scene.book.getPages()-1
m***l@innovations.at
2019-08-16
2019-08-16

Thank you, but endFlip seems only to trigger at the end of a page, not of the complete book .. or the LAST page...?

a***r@3dflipbook.net
2019-08-17
2019-08-17

It triggers for each page that finished flipping animation. But scene.ctrl.getPageForGUI() gets just current.

Log In to leave a comment