Hi John,
User flips a page and you want to auto-flip to another one after a delay ? Right ?
Here's a very basic example for one page,
Notice that you can auto-flip in the same book or auto-flip to a page in another book.
You have to comment out the one you dont't use.
This is set as;
// --- jmp to
local book page ---
MegaZine.getMovie().gotoPage(20, 0);
or
// --- jmp to
remote book page ---
window.location.href=URL;
copy the following code in you page after swfobjectvar tID; // timer id
var tRes=1000; // timer resulution in ms
var tMax=10; // timer expires after in seconds
var tP=0;
var FlipThisPage=10; // make this Page auto flipable to another one
function setTIMER(_m, _r) { tP=0; tID=setInterval('__chkTm('+_m+')', _r); }
function resetTIMER() { tP=0; }
function stopTIMER() { clearInterval(tID); }
function __chkTm(_max) {
if (tP++>_max) {
tP=0;
// --- jmp to local book page ---
MegaZine.getMovie().gotoPage(20, 0);
// --- jmp to remote php book page ---
window.location.href='
http://205.234.107.35/27/index.php#/8';}
}
MegaZine.onPageChange = function(page) {
if (page==FlipThisPage)
setTIMER(tMax, tRes);
else
stopTIMER();
}
Best regards, Karl