PageFlip 2.25 animated pages

I´m working in a page flip project (downloaded the free version from pageflip.hu)

I want to create some animated pages, bu I have a issue:

  • The animation runs fine (simple things like alpha effects), but when the mouse cursor reaches the page´s corner, the animation starts again.

I don´t want that.

The file downloaded has a page like this. It´s a graphic that rotates. So I think it´s possible, but I don´t know how.

Any suggestions?

Thanks and sorry for my bad english.

The solution: it´s about _global.mcnt=0;

I used Macc’s PageFlip v2, (http://www.iparigrafika.com/pageflip), for an online book. When trying to implement this flash code I found that it would not work with animation on a page. The animation would play the page before it was supposed to and reload/play everytime you moused over the corner of the page. If you are here because you are having the same problem read on. Because Astonished Man has a solution for you. And it is FREE!! Just like the original source code. My way of saying, “Thanks, Macc”

On the page mc that the animation is on start your animation on the second frame. Mine is in a MC so I only have two frames in my page mc. In frame 1 place this code to make the animation wait for the page to load before playing:

if (_root.getPN(2)==_root.page) {
gotoAndPlay(2);
} else {
stop();
}

I got this from the btn.enable line in a page. The comment said // the button is enabled only when this page is on top! so I figured that is how to tell what page you are on.
Replace PN(2) with whatever page set your animation is on. Use the even page number no matter which side your animation is on.

To keep the animation from replaying when you mouse over the corners do the following (I got this from SpawnBlades post above):

In frame 5 of the main code create a variable for each page that has animation. Place it just before the _global.mcnt=0; something like this:

_global.anim1=0;
_global.anim1=0;
and so on…

Then in the first frame of your animation put this code:

if (_global.anim1 !=0) {
gotoAndStop(500);
}

I replaced “500” with the last frame in my animation.
Then on the last frame of your animation put this code:

_global.anim1++;
_global.anim2=0;
stop();

The first line increments your animation count so that it won’t play again. The second line resets the other pages animation so that it will play when you go back to it. You will need this line for each of the animations you want to reset.

That’s it and it worked like a champ.

Many thanks to Astonished Man