advertisement

Article:
  The Page Turn Effect in Flash MX
Subject:   auto page turn
Date:   2007-11-01 01:03:31
From:   bobbybruin
Hi Sham, I've been trying to get the page turn to work, but with no success. I created a pageFlip function:



function pageFlip():Void {
// This function opens the page by
// double clicking the curl
timer = getTimer();
if (this.time != undefined && timer-this.time<doubleClickTimeout) {
delete line.onMouseMove;
turnInterval = setInterval(openPage, 10);
}
this.time = timer;
}
</code>


and then included it with this:



backPage.onPress = function() {
pageTurn();
pageFlip();
};


but its not working ... i know its something to do with turnInterval = setInterval(openPage, 10); but not sure what.


Any advice would be great.
aaron