Groups | Blog | Home
all groups > flash actionscript > november 2005 >

flash actionscript : PageFlip


Astonished Man
11/29/2005 9:55:44 PM
I'm creating an online book using the pageflip script
(http://www.iparigrafika.hu/pageflip/) by Macc.

The main stuff is coming together great. But I am trying to have animations
on the page. Ah, now there's the trick. My animation is a movieclip placed on
the page movieclip. But it is triggered too early and too often. When the
first page loads you can hear the animation (it has sound) loading on the next
page. When you turn to the next page you can hear the next animation run. Any
mouse motion you make around the corners triggers the animated movieclip to
reload and play again.

I looked through the script for a way to tell when a page completed its turn
and then to trigger the loading of the movieclip but I can't figure it out.

Is there anyone who has used the pageflip script with animated pages?
Astonished Man
11/30/2005 2:20:25 PM
Rothrock
11/30/2005 2:36:58 PM
I've used it a bit. But I don't have an answer for you. You might want to
reconsider your design a bit and have the animation paused with a button or
something so the user can start it once the page has flipped over.

If you want to keep poking around I would look into the
mousecontroll.onMouseUp event and the autoflip() function. But I'm not sure
exactly what I would look at there! :)

Good luck!
Astonished Man
11/30/2005 4:37:21 PM
Thanks. I will explore that.

I played around with creating an invisible hit layer that made the animation
play when the mouse passed over the page. That kept it from loading a page
early. But when your mouse passes over a corner the animation resets and plays
again when you mouse passes over the hit layer. Still not what I need. I just
want the page to flip, the animation play, and remain at the mc stop();
position until the page is turned again.

Is that even possible? Someone once said you can do anything with Flash. I
hope that is true.
Rothrock
11/30/2005 4:42:36 PM
Well of course it is true! The problem is that you would have to build the
whole thing from the ground up yourself to make sure.

The person who made pageFlip may or may not have anticipated this need. That
is always the difficulty with trying to tweek code made by somebody else. So
without a lot of work it may be easier to make your own. :)
AddThis Social Bookmark Button