February 01, 2004
Page Flip: The Final Word

Okay - don't look any further. Here is the last page turn engine that you will ever need: it's scripted, it's perfectly smooth, I did not find any bugs and it has one feature that none of the currently known engines has: you can drag on all four corners of the book.

This masterpiece has been created by Macc from Ipari Grafika, Hungary. And yes - you can download the fla source here.

Posted at February 01, 2004 11:38 AM | Further reading
Comments

that is a very nice piece of flash!

Posted by: Keith Peters on February 1, 2004 12:19 PM

yessss.... really perfect work!
respect goes out to Macc!

Posted by: Erik Lembke on February 1, 2004 03:39 PM

Very nice, thanks for sharing!

Posted by: darron on February 1, 2004 04:01 PM

Very very nice! I wasn't expecting that much.

Posted by: Burak KALAYCI on February 1, 2004 04:08 PM

Remarkable. Very well done.

Thanks for the link Mario.

Posted by: Oscar Trelles on February 1, 2004 04:59 PM

neat!

Posted by: aSH on February 1, 2004 05:57 PM

Perfect !

Posted by: Xav on February 1, 2004 07:38 PM

oh yeah - that's some sweet flash stuff there!
Now if I could just figure it all out....

Posted by: ByteDreams on February 1, 2004 10:17 PM

The only "bug" that I saw during my time playing with this, was one that, if you try to turn the next page before the last page has "dropped", then it causes the "dropped" page to jump back.

Still, thats some pretty amazing stuff.

Posted by: Chris Owens on February 3, 2004 02:45 AM

Hi! thx for your compliments, and Mario for posting it... Chris: it would be good, to flip another page, while the first one isn't finished...

Posted by: Macc on February 3, 2004 03:22 PM

great work! Thanks.

Posted by: AlexU on February 3, 2004 06:33 PM

This is really amazing, amazing work.

Now, if I were some sort of a good ActionScripter, I'd sing and dance all day.
But being a graphic designer, I was not able to adjust this to my needs/wishes without screwing it up.

All I need to now... how do I add more pages??? I tried adjusting the code, with very limited success.

Anybody who has a hint for me? Pretty please? Thanks :)

Posted by: Squiddo on February 3, 2004 08:18 PM

I can't see it. I have 7,0,14,0 installed. Also, their homepage comes up but I don't see anything in the large right 2/3 area of the page. Bottom is fine, sidenav with floating descriptions (nice) is fine.

hmm

Posted by: matte on February 3, 2004 09:47 PM

never mind. Upgraded to 7,0,19,0. demo works now but their website still doesn't. [shrug]

Posted by: matte on February 3, 2004 10:04 PM

Truly spectacular use of Flash. Thank you for sharing this. Your generosity is much appreciated even if I haven't the feintist idea of how you did this. :)

Posted by: TheDon on February 4, 2004 05:50 AM

Shall we now expect a torrent of page turners? ;)

Brilliant code, though as interfaces go I think turning a page is best left to books.

Posted by: ptrdo on February 4, 2004 07:48 AM

Hi

Very nice here is something we did about 6 months ago.

http://www.schwingportal.com/digimagazine/digimagazine.html

comletely xml driven digital brochure something with onmouseover info, chapters, back and forward paging etc.

Armand

Posted by: Armand on February 5, 2004 08:58 AM

Squiddo: incrasing no of pages is simple: frame3/ maxpage=[number of pages]. and you must make every pages and export it by the same way as the existing pages. The page after the last visible page must be blank.

Thx again for all!

Posted by: Macc on February 5, 2004 08:23 PM

Hi!

Me again... Some people asked me about tearing off pages from the "book"... So i started to made it... and the basic of the effect is now done. But the harder part remains... mainwhile here is a little demo: http://www.iparigrafika.hu/pageflip2.html
I post the source once i finished...

Posted by: Macc on February 5, 2004 09:09 PM

Awsome! Very impressive! Congratulations and thank you so much for sharing :)

Posted by: Eduardo Mrquez on February 7, 2004 12:11 AM

Macc, this is really great work. What adjustments would I have to make to include larger pages?

example:

frame3 / actions
pw=400;
ph=547;

do I change the 0,0 registration point for each page? (I offset y:-100.0 for each page to make up for the displacement, but there are problems with shadows when I turn pages from the lower corner)

Posted by: derek on February 7, 2004 01:15 AM

http://www.nokiko.com/flashbook/bookxml.html

ok we have a new sample: each chapter in the book is a separate swf file, each of the chapters is defined in xml. this also loads the chapter menu. you have 2 options, one is to go to the next chater and one is to autopage to the next chapter.

all the effect is done in the main swf, this one loads the chapter swfs and applies the pagelipping effect to each frame.

Armand and Guilermeo

Posted by: armand on February 10, 2004 12:23 AM

Macc: Thanks for your help, forgot to come back sooner.
Anyway, I still can't figure it out, sorry. :(

How do I add more pages? I put them (named "page10", "page11"...) atop the ones that lie on frame 2 / layer "pages" and change the script in frame 3 accordingly.

What I end up with is the final pages repeating...

What am I missing? Do I have to them somewhere else? Thanks for your kind help... and apologies to power-scripters in here that I'm annoying with my stupid questions :)

Posted by: Squiddo on February 10, 2004 04:38 AM

Regarding adding pages...

1) Create your additional page MovieClips and number then accordingly i.e. page10, page11. Then select the properties of these MovieClips and make sure "Export for ActionScript" is selected and that the identifier is also entered (the same name as the MovieClip page.

2) Then select Frame 2 on the main timeline and you will see all the pages for your "book" sitting there. Drag and place your additional pages here.

3) Change the MaxPages variable on Frame 3 to the new number of pages (plus one). Note that you can use clear (alpha 0%) MovieClip pages for the additional page so that the user will not see it.

This should help...

Posted by: Ozzy on February 11, 2004 01:32 AM

I found a bug...

The first page disappears when you first click the mouse over the page to drag. After that it's ok.

Any ideas on a fix?

Posted by: Ozzy on February 11, 2004 03:29 AM

This is great. but I wondering how to change the page size if I have bigger images?

Posted by: Coolio on February 11, 2004 04:09 PM

yes.. a brief explenation on how to change the page format would be very nice.
Great work, Macc!

Posted by: c0rgan on February 11, 2004 05:44 PM

ABOUT RESIZING PAGES...

As you probably know, if you change the page dimensions (especially the height) the flip motion does not work properly.

What I do is keep the size the same (adjusting the width is OK to a degree) and then import that movie into another movie's movieclip and increase that size. That's the only work around I've come up with.

Also about the first click error, an easy fix would be to add an additional variable in the "MouseDown" function to ignore the first mouse click like so:

mousecontroll.onMouseDown = function() {

clickCount++;

if(clickCount > 1) {

if(flipOff) {

(*Code*)

}


}

}

I hope this helps.

Posted by: Ozzy on February 11, 2004 08:11 PM

Ozzy,

quote: make sure "Export for ActionScript" is selected and that the identifier is also entered (the same name as the MovieClip page.

Thanks so much. This is what I did not realize. The rest was peace of cake.

Thank you!

Posted by: Squiddo on February 11, 2004 10:57 PM

Is there away to get this page flip to work with onPress or onRelease instead of having to drag pages?

Posted by: Kevin on February 12, 2004 01:47 AM

Also see my 'research' on other implemtations at:

http://www.actionscript.nl

Either choose ">" or pageTurners from the menu.

peter

Posted by: Peerless on February 12, 2004 09:07 AM

Wow! this could even turn the pages at the 4 corners! But is it possible to add animation inside the various pages?

shuling

Posted by: shuling on February 12, 2004 11:48 AM

hi marc, realy great work!
i have also the problem when i change the page dimensions.
for example: pw=466 and ph=700. what i have to do???
and how i can make an autoflip?
thx

Posted by: JN HLLBRG on February 12, 2004 04:07 PM

Just wanted to post my new site using this code.

Allow me introduce myself: http://www.ozzybenn.com

Many thanks to Macc for the code - yes I did give you a credit - now that's teamwork.

Also thanks Mario for posting this code and maintaining this great site, Coma2 rocks!

*wink*

Posted by: Ozzy on February 12, 2004 08:41 PM

coma2 rocks? Sure they do, but since October last year they rock without me *wink* - http://www.quasimondo.com/archives/000327.php

Posted by: Mario Klingemann on February 12, 2004 08:49 PM

*embarrased*

Opps! All hail Codeazur!

You rock no matter what crew your with.

*double wink*

Posted by: Ozzy on February 12, 2004 09:01 PM

Hi! Thx for all of you!
Ozzy: thx for the credit! Nice work your site!

About difficulties during size changes, here is some hint to do:

In the original one, you have a book with 8 pages:
first page is 1 (always at the right side (odd number))
last page is 8 (always must be at the left side (even number))

page0 is the page before the first page: must be a blank background
colored or empty movieClip
page9 (in the original case) is the page after the last page!!! and
works like page0!

if you incrase the number of pages to 18:
page9 must be renamed page19 (maxPages+1) and don't forget it's export
name also must change to page19!

all pages you inserted must named starting by "page", and followed by
the page number (9,10,11,12,13,14,15,16,17,18)...
and also must be exported with the same name!

One more thing:
Because this fla has a self loader routine, don't export item in the
first frame!!! don't check this option when exporting!
but place an instance of newly created pages on frame 2, where the other
are placed!!!

About bad masks when page size is set to higher than the original:
I entered bigger page sizes on my original source, and the only one small bug was detected:
the tourning page's mask was not enough high.
this is a very simple thing to change it:

at _root/pages/mask/ you find a graphic element, that is 500x900 px-> change it to 500x1200 (or higher if it's not enough)
and at _root/pages/pgrad/ you find also an other graphic element: its height is 900px too. change it to the same value (1200)
and at _root/pages/flip/p3shadow/ do the same thing here again.
and at _root/pages/flip/flipgrad/ do the same thing here again.

this is because i used the largest page size that this code can support. if you change these attributes, the larges page size will be incrased!

good luck. next versions coming soon:)
(next version's code will be optimized and more flexible)

Posted by: Macc on February 13, 2004 12:58 AM

hi marc - again really great work!
a have another problem when i try to integrate a button on a page. it doesn't work. for example:
on(release){
getURL("http://www.google.de");
}

and an autoflip would be nice...

Posted by: JN HLLBRG on February 13, 2004 08:52 AM

autoflip, hard cover, quickjump btn on a page, possibility of tearing off pages, flipping corner on mousover... these functions are done, and will be soon public.
i don't know why your button do not want to work, for me it worked fine... (i have tryed already dynamic texts, working buttons, animated movies on pages etc...) try to insert a btn to any page (the exported one) and associate with it you short script...
Ahh... i have an idea: it's because the mouse clicks are captured for the whole page:

do desable this, try changeing the code to:
line 104: if(x0) {
line 110: if(x>(pw-64) && page<maxpage) {
where you can set the value (64) of the distance from page edges...

Posted by: Macc on February 13, 2004 11:27 AM

but now the backflip isn't possible...

Posted by: JN HLLBRG on February 13, 2004 12:42 PM

ohh... the code at the line 104 was cropped... i don't now why... wait...

(page>0 && x<-(pw-64))

Posted by: Macc on February 13, 2004 01:39 PM

it works -thx a lot
if you have a new version with autoflip or ather things please tell me (jan.hellberg@gmx.de).

Posted by: JN HLLBRG on February 13, 2004 01:54 PM

it would be the only one you would ever need, except that it needs a couple of nifty things...

easily addable pages

nicer loading (for lots of pages and big pictures)

a zoom lens

as it is it rocks tho. but i wouldn't be saying it's the final word...

Posted by: Tracy on February 15, 2004 11:20 PM

I just would like to say that this is one of the most brilliant things I've ever seen done in Flash. Props to you for doing such a wonderful job.

Posted by: FubarShibby on February 17, 2004 09:11 PM

Is there a way to automatically flip that pages say wiht a button click instead of having to drag the pages....I thought this would be an easy modification of the code but I cant seem to figger it out. Any help???

Posted by: keith on February 17, 2004 11:46 PM

Is there any way to have the pages load images or .swf externally? Like have the images loadMovie("image.jpg");

I have tried this and every time click on the page the page flickers. Every page does this. Is there any way to stop the page from flickering? thanks so much

Posted by: Tedd Crozier on February 18, 2004 10:16 PM

hi macc!

very nice script!

when do you think is the new version online(hardcover etc.)? and will it be also open source? ;-)

thanks a lot,
lisa

Posted by: Lisa on February 19, 2004 11:17 AM

How can I make each page 'stack'?

At the minute the pages disappear behined eachother

You drag a page out then another and when you drag the next one the firt one disappears behind it. I am creating a book whick has tabs sicking out the top, sides and bottom so I want all the pages to remain on the screen at once.

Posted by: steve on February 20, 2004 10:51 AM

nice work btw!!

Posted by: steve on February 20, 2004 10:53 AM

Jaw Droppingly good!

Amazing what Flash is actually capable of with someone good at the wheel.

- Ash

Posted by: Ashley on February 22, 2004 09:25 AM

This is fantastic, but could someone help me out with a development question???? Is there a function to call (from a button) which will turn the page over sequentially without dragging. Ie from a thumbnail button?????

Posted by: paul on February 23, 2004 12:49 PM

This is just fantastic, just what i was looking for .... can i ask for a bit of help though...
How can i make the images on each page be picked up externally???

Any ideas?

Once again .... great work

Lawro

Posted by: Lawrence on February 24, 2004 05:19 AM

In order to have the pages filp automatically you would have to exchange the target coordinates for the corners that currently come from the mouse with some pre-defined or scripted target coordinates.

This could for example be done with a keyframed path animation, but of course it would be more organic if you write a script that moves a target from one corner to the opposite corner in a random fashion. Somewhere in the pageturn script is a routine that checks the _xmouse/_ymouse coordinates- exchange this by the coordinates of your moving object and there you go.

Posted by: Mario Klingemann on February 24, 2004 01:34 PM

Great, Ill give it a go! Thanks a lot!

Posted by: paul on February 24, 2004 02:08 PM

I embeded the pages using loadmovie just create a movie clip inside the pages as a container and load the external in onEnterFrame, this works for embeded video also

Posted by: paul on February 24, 2004 02:14 PM

OH! But you have to be carefull with loading video as the video will reload after the mouse is released. I have tried to avoid this but Im not clever enough! I just added 15 frames of a still to delay the video playing but Im sure the more talented guys here have a way of only loding the vid when the pages have been set and the drag has finished

Posted by: paul on February 24, 2004 02:17 PM

http://www.systemminds.com/fxindex/brochure.html

this is beautiful

Posted by: simon on February 24, 2004 02:29 PM

This is just great!!! The link above. I would love to take a peak at the source?

Posted by: agro on February 24, 2004 09:54 PM

It has been said by everybody, but again: Great work Macc, and thanks for sharing!!!! You have my credits for this one... I really thinks it is cool to see people helping each other out this way, even putting up complete source codes

And just like everybody I'm looking for MORE of this!!!! hehe :) looking forward to even better pageturning (stacks, hardcover, multiple pageturning etc.)

BUT!!! don't let me be too gready and just start with a simple (?) question about the only bug people could find: The 'first click/first page flicker' buggie thingie... Ozzy suggested to 'disable the first click'. Although it is a good idea, you actually are now created a 'first click' bug... Wich i think is not a good idea for people who are new to your site and perhaps don't understand this way of navigating by means of a book with pages. (the slowminded ones will try to click the first page maybe one time, and could think "oh, this isn't it")

Isn't there another way to 'really' fix the bug? Or suggestions a better work-around?

Posted by: The Nono on February 25, 2004 03:43 PM

Thanks Paul ... the Brocure is excellent also and I too would love a peak at the source as i am trying to create button navigation also.

Lawro

Posted by: Lawro on February 25, 2004 05:56 PM

hi all,

a stupid question:

what is the full path from the root to for example page30 in the pageturning swf???

Because I created a movieclip called 'mail' in MC "page 30" and inside is a mailsender wich sends user comments to a php script. In return the php script sends back a conformation to the swf to let people know if their messase was sent... Normally I would put the 'mail' MC-instance in the root, but now i've put it in 'page30' movieclip, i'm not sure how to change the path used in this line in the php script...

Print "_root.Mail.EmailStatus=Complete - Your mail has been sent";

anyone? thanks

Posted by: the nono on February 25, 2004 06:38 PM

Hi !
Very nice source indeed and thanks to Macc for sharing it !
Here's my littlke question (I'm a neebie and beginner) :
- I tried to insert an interactive movie (like a draggable object) inside a page.
- when I try use this animation, the mouse click only triggers the turn page routine.
- what I would need is a way to make the turn page routine triggerable only within ten pixels in the border of the page, so that the mouse click would call only actions inserted in the pages.

Help would be great

Kind regards
L

Posted by: Laurent on February 25, 2004 06:52 PM

I dont have the source code for the systemminds thing - I found it when looking for inspiration for a page turn - The buttons to flip to different pages is something I really want to do. Have used the set pages function to go direct to a page, but when you click to turn manually it reverts to the page it was previously on??

Posted by: simon on February 26, 2004 09:17 AM

If you get any code for the manual page turn, i would appreciate a look Paul/Simon.

Thanks
Lawro

Posted by: Lawro on February 26, 2004 01:43 PM

Hullo all,

First off, the code is awesome. Super inspiring. Thanks for all who posted it.

I've been doodling with this for awhile...what I really want to do is have some kind of ripped page effect, where if you're on page 1 maybe a corner or a part of the middle is ripped out and you can see a part of page 2.

The problem is that I can't seem to get the page behind the current one to load until the mouse is pressed.

Basically I want the next page to load with the current page.

Does anyone have any suggestions as to how this can be accomplished?

Thanks a ton. :D

Posted by: Jamie on March 4, 2004 03:41 AM

Laurent:
about catching click on the page:
Posted by: Macc on February 13, 2004 11:27 AM

The first click thing is a little bit strange... it's not always present. But in the next version this bug will be corrected.

The small 300line of codes reaches today the 1200 lines... i will optimize the code, and write some hint about handling it...

Go to view my site, in the first page you will see if any updates are available...

http://www.iparigrafika.hu

Posted by: Macc on March 4, 2004 11:21 AM

Thanks Macc ... unfortunately my Hungarian is a little rusty and i can't quite figure out where i should go for updates.
If you could direct me to somewhere i could find an example of a source file with pageflips by button on(press) i would be eternally gratefull ... in fact if anybody could help me I would be eternally gratefull :)

Many Thanks All

Lawro

Posted by: Lawro on March 5, 2004 12:26 AM

Lawro,

click on the flag icon on the bottom of the interface (left most icon of a 3 icon group next to the version information) and the titles etc change from hungarian to english... as with all macc does very elegant in deed.

Macc cheers for the code - will find out from your site where to send the beer and thankyou chocolate!!

Posted by: Joe on March 6, 2004 05:21 PM

Hi! All. The new version is not yet uploaded, because i have to made the design and the interface. Once it has been downloadable, i will inform you all in this topic, and on my site too. The english interface of my site is under developement, and when it will be done, all text will be in english.

Posted by: Macc on March 9, 2004 04:28 PM

Definately the best page flipper I've seen, grreat work!

One thing... can I put buttons on the pages that will work consistently? Maybe something that deactivates the page turning on rollOver....

Posted by: Cory on March 9, 2004 08:01 PM

awsome code... but I am not as savvy modifying it as the rest of youz guyz! I have images that are 480wide by 747high. I have been mucking around for 2 days and what I get is far from pretty.

any help?!?

Posted by: shua on March 9, 2004 11:55 PM

Thank you for the update Macc, I think everyone here is looking forward to seeing how you have coded the new modifications and would like to thank you for sharing it

Paul

Posted by: paul on March 10, 2004 09:29 AM

Brilliant work - and many thanks for sharing!! I look forward to seeing the next version...

Posted by: Michael Daul on March 10, 2004 02:37 PM

Can someone help me whit
turning pages whit buttons so that the pages is fliping automatic and where most i place the action
under the button or in the 3 frame i have tryed a lot of thing but nothing worked ik hope someone can help me

Posted by: wessel on March 10, 2004 06:58 PM

Can someone help me out???
Is it possible to let the pages flip automaticly.
Or does anyone know where i can get an auto flip-over.

tnx anyway.

Posted by: Luuk on March 15, 2004 02:20 PM

Anyone know what I is wrong here? I tried changing the page size, but then when I flip a corner, the corner opposite to that comes in as well (?).

Here's a sample flash with the error.
http://members.shaw.ca/pazu/error.swf

Posted by: Joe on March 16, 2004 10:31 AM

Hello Joe,
You must resize every page included the white/transparent ones and make sure they all match from both sides

Posted by: Laurent on March 16, 2004 12:27 PM

Yes an astounding piece of code! Wicked...had a good look round and this IS the most reliable and best page turn, if not the easiest to pick up, code wise...that maths, ouch....still don't totally understand it :-(

To the people having probs - if you resize the pages on the 2nd frame (not the 'pages' mc on the 3rd page, leave that alone) and change the pw & ph in the code it does work fine (for me it does anyway)

I have 2 queries though:

1. If you use bigger pages than 250x350 you sometimes get a cutoff from the mask at the bottom or top at some angles- altering the mask in 'pages' mc. seem to change the click-drag functionality for the worse...which mask or code do I need to alter to stop this?

2. A bug, but probably more with Flash - if you drag out of the movie it kind of 'sticks' and doesn't release the page until you click back at the edge of the target page, kind of fiddly...

Any way of making the page automatically 'release' (mousedown) if you mouse out of the movie?

Tried to amend the code but it doesn't work for me :-(

Posted by: tim on March 16, 2004 04:56 PM

I did spot this problem too. But it only occurs on PC. It works fine on Mac

Posted by: Laurent on March 16, 2004 05:32 PM

DOH!

Must have missed macc's query answering my first query...

note to self, must read more carefully! ::-)

2nd query still stands...not a major thing, just I've got the code sorted for detecting whether someone has moved the mouse off the flash movie, just can't work out how you force a 'mousedown'

Oh to those who needed an autoflip - not sure this is possible as it's all dynamic...I animated it manually using the grads etc, looks OK just fiddly...

Posted by: tim on March 16, 2004 06:06 PM

Autoflip ? Nice.
Do you think you can post the .fla ?

Posted by: laurent on March 17, 2004 12:31 AM

Hmmm, I made the pages the same size, and increased the mask sizes, but I am still getting this error. :(

http://members.shaw.ca/pazu/error2.swf

Also, is it possible to have a movie clip play only after you have flipped the page (specifically after it settles)?

Posted by: Joe on March 17, 2004 07:38 AM

Hey Tim,

U think u can post or mail me that autoflip.fla :)
So i can see how U did it.
Cause I'm still trying :S

Posted by: Luuk on March 17, 2004 12:33 PM

Joe - hmm not sure - maybe as you're pages are wider than macc's you need to widen the masks too? also I made sure that they were still registered at the same centre point (dunno if this matters, but I changed the mask heights then moved the mask so the white circle matched the others)

As regards making the movie clip play only when the page is settled this is easy:

1. Add "_root.stopped = false" to macc's script on frame 3, inside the mousecontroll.onMouseDown function

2. Make a movieclip with a stop action in the first frame, then what you want to animate on frame 2>.

3. Add this new mc to your pageX mc and call the instance 'stopanim'

3. Inside the pageX MC add this code:

if (_root.stopped==true) {
stopanim.gotoAndPlay("go");
}

hope this helps.

Posted by: tim on March 17, 2004 03:48 PM

oops forgot to add:

4. Add "_root.stopped = true" to the mousecontroll.onMouseUp function

Posted by: tim on March 17, 2004 04:12 PM

This Page flip (turn) is exactly what I've been looking for, for years!!!! I'm currently a Spanish teachers who loves to integrate technology with the students in the classroom. Every year we go through the monumental task of publishing hardbound books created by the students in Spanish and English. I would like to do the book electronically instead of doing it hardbound. For years I've been looking and searching for a way to create a digital book with the same effect as the page turn effect used here. I've used Power Point Presentations with simple effects for transitions from one page to the next, the same with the Front Page, the transitions used there are quite primitive. Even java script page flips are primitive compared to your effect. I would like the students to show this effect with the pages of the children's books they write and illustrate. If you can help us at all whatsoever we would Love your help in creating the students' children's books digitally with this page flip effect. I would also like to add sound to each page as it is being turned with the voice of the students recorded, this way they can be the writers, illustrators and narrators of their own books. Please help, I know it can be done, we just need someone to help us with the process needed to create this special effect with the pages of the books.

PLEASE HELP US!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thanks,
Carlos R. Montes
Orefield Middle School
montesc@parklandsd.org
Ext. 61121

Posted by: Carlos Montes on March 17, 2004 05:52 PM

Thanks Tim, but I still can't get the movie code to play after I flip the page with that code.

Can you give me an example of it in a .fla file?
Maybe there is something I'm not doing right. :(

Posted by: Joe on March 17, 2004 09:33 PM

hello,

i must say that so far you have all been very helpful to me in regards to making this work without much knowlege of acton script. i am still troubled by a few bugs.

1.i have not yet been able to figure out how to flip pages with buttons.

2. the mouse sticks on a PC as mentioned above. is there a way to fix this?

3. and macc, is there a version of the code with comments in english, since that is the main way i familiarize myself with action script.

thank you all and especially macc for his generosity.

Posted by: snejina on March 17, 2004 09:50 PM

Nevermind, got it to work. :)

Thanks.

Posted by: Joe on March 17, 2004 11:09 PM

Is there a way to have it show up with the book cover page right away rather than the blank white page?

Thanks!

Posted by: Shaun on March 18, 2004 01:07 AM

Hi Shaun,
This worked for me. In the third actions frame of your scene have your pages start at 0 rather than -2 (line 12 in the code "page=0"). than have your page0 be blank and place your cover in page1. i lied to the code so it works in that i told it that i have two less pages than i actually have. so if you have 14 pages/movieclips write maxpage=12 in line 14. hope this works for you. it worked for me.

Posted by: snejina on March 18, 2004 03:14 AM

I am having trouble adding additional pages to this.
I have done everything (I think) that Ozzy said previously,


"1) Create your additional page MovieClips and number then accordingly i.e. page10, page11. Then select the properties of these MovieClips and make sure "Export for ActionScript" is selected and that the identifier is also entered (the same name as the MovieClip page.

2) Then select Frame 2 on the main timeline and you will see all the pages for your "book" sitting there. Drag and place your additional pages here.

3) Change the MaxPages variable on Frame 3 to the new number of pages (plus one). Note that you can use clear (alpha 0%) MovieClip pages for the additional page so that the user will not see it."

but it still does not work. :(
Any ideas on what I have done wrong?

Posted by: Joe on March 18, 2004 09:03 AM

To All trying to get a different size--- If you copy every thing into it's own movie clip, then put it in one frame on the stage with a stop.... you can resize the clip and the resolution of images on the pages will still be able to reach whatever they are imported at.(also good to know if you embed as a sizable swf)

Posted by: Cory on March 18, 2004 10:57 AM

Hello, I'm a student from Belgium and I'm studying multimedia Design. I'm doing a trainee ship and I've to make a flip page with 12 pages but it has to start automatically. Can someone help me with this. Tips are welcome on the following e-mail address:melissa.van.dessel@pandora.be Thank you for your help
Missy

Posted by: Missy on March 18, 2004 11:17 AM

can some one plz say the effects thats used on the images in the pageflip.fla and whats the name of the font where is't writing 'drag the page' and the fla is really a perfection but i am waiting for the new version...

thnx

Posted by: esogut on March 18, 2004 02:22 PM

Sorry if this has been asked already. Went through the list of comments and didn't see an answer for this one. On a PC the page is sticking if you drag it off the flash movie. When you mouse back over the flash movie and click it doesn't allow the page to turn but falls back into it's original position. Anyone? Anyone? Bueller?

Posted by: Derik on March 18, 2004 09:29 PM

Hi, I'm having the same problem as Tedd posted regarding importing external JPGs for pages. Anyone know of a solution. All I can figure out is that they get loaded multiple times and that causes them to blink/flash... Anybody got a solution?

Posted by: Greg on March 19, 2004 03:31 AM

Okay, I have figured most of the things out. :)

I am currently working on a school final project and have decided to use this code (credit will be given to Macc of course).
I just need a bit of help in doing some triggers since I am not experienced in coding for flash and my project is due very soon.

How can I make a movie play on the right-page only after a movie clip on the left has finished?
Also, for tim's play movie on flip code, how can I make it so that only the left-side's movie plays and how do I make it so that the movie(s) will not play again once they are complete (stay still on the last frame)?

Posted by: Joe on March 21, 2004 09:31 AM

Joe, wanna share your source (fla) so we can see?

Posted by: Greg on March 21, 2004 10:03 PM

Hi everybody,

I would like to thank Macc for this great code!!!

But i also have a prob when resizing the pages:( (230x565 px)

When i hold a page corner, the top of the page get lose when i drag my mouse upwards. How do i resolve this?

Please can anyone help me?

Thanx a bunch

Posted by: Marshall on March 22, 2004 03:12 PM

Hi everyone,

Great to see people finally sharing some great code for the benefit of us all. In response to an earlier message I am posting up a page-flip wav file I created at http://www.gabriella.tv/pageflip2.wav for those that might find it useful.

If those that have made improvements could post their new and improved fla's that would be much appreciated to the rest of us. Thanks and Enjoy.

Posted by: Fabien on March 22, 2004 03:50 PM

Anyone? Anyone know the answer to the PC bug of the page not turning if dragged past the edge of the book? I'm desperate here. As cool as this flash piece is, it can't be used if I can't get the PC to display it properly. PPPLEEEEAASSEE.

Posted by: Derik Lolli on March 22, 2004 05:51 PM

Derik - the problem is that flash doesn't receive any mouse events if the mouse is outside the flash area. The only way around this, is to make the flash file fill the whole browser area, by making it 100% and setting Stage.scale="noScale"

Posted by: Mario Klingemann on March 22, 2004 05:56 PM

Anybody wanna share the code on how to load in external jpgs (so they don't blink). I tried loading them in the individual page movies, but they obviously reload every time they get clicked and it causes them to flash on screen. Help?

Posted by: Greg on March 22, 2004 08:04 PM

Hi,

Nice code. And thank you for sharing it. You explained earlier how to add more pages. But I want to remove some pages so the last page would be 4. I got it almost by just removing the jpg's and their movieclips from page 5 up to 8. I don't delete the page9 and movieclip9 but rename it to 5, so I thought the 5th page would be a blank. But now the 5th page is the same as the 3th page? Could you help me on this one? Thanks.

Posted by: shodan on March 24, 2004 12:34 AM

Hi!

esogut: the font is DIN MITTELSCHRIFT
the effect used on jpgs is a simple ADD NOISE filter in Photoshop.

i'am at finishing of the version2. Now, if you want, send me any suggestion about new features you would like to see in the next PF!

Courrently finished features:
- Hardcover (can be turned off)
- autoflip
- gotoPageX (multiple autoflip)
- page trancparency

changes in the code:
- english comment
- easy page adding, resizing
- first click error fix
- Sticky mouse fix

Posted by: Macc on March 24, 2004 04:47 PM

Mario,
Thanks! I set the flash file to 100% in the html and the used the noscale code and it worked to perfection. You da man!!!!

Posted by: Derik Lolli on March 24, 2004 10:15 PM

Nice to hear from you, Macc. :)

Around when will this new version be out?
My project is due in 2 weeks or so, but I want to integrate the new version if time allows.

Greg: I wouldn't mind sharing the .fla, but it is currently quite large (can't host with my limited webspace) and filled with things that are not essential to the page flip, etc, since I am working on a school project, so I'm not sure.
However, basically I just did what tim and ozzy posted previously (adding those codes and resizing the height/width of the masks, etc). ;)


I still can't figure out how to make a movie clip on the right page play only after another movie clip on the left has finished. Any body got any suggestions?
Also, how do I make the movie clip stop and stay on the last frame even after I flip the page (with tim's "play only after the page has settled" code)?

Posted by: Joe on March 24, 2004 10:18 PM

is it possible to remove the first page??? just the first white page... :s thx...

Posted by: robke on March 25, 2004 04:10 PM

Ok, I've downloaded this file and have it taking in all of the book variables(page size, max pages, etc) and external swf or jpg pages dynamically from an xml file. Everything works fine as far as the xml importation goes, but I found a problem in the downloaded fla.

Whenever you increase the size of the pages from the original 250 * 350 using your variables, there is a masking and rotation problem with the bigger pages when flipping with the corners of the page. The top or bottom of the pages seem to get cut off until you let go of the mouse.

I'll check it out and see if I can't fix it, but I thought I'd give you a heads up if you knew what might be wrong right away. As a test you can put in a width of 500 and a length of 700.

If I keep the original size of the pages, everything works fine, but I don't want to be restricted to the current 250 * 350 dimensions. ;) I'll keep you updated as to whether I fix the sizing issue on the flip

Great piece of work BTW ;)

Craig (willdriven)

P.S. I'm also commenting your code in english, for those who might only be able to speak or read english ;) Once I'm done with a completed fla (comments and no page turning bug), I'll post it. Any word on when the new functions will be available so that I could get those in the commented fla?

Posted by: Craig Newkirk on March 25, 2004 05:39 PM

thanks for all the information you have all given freely here, it has really helped.
I've been working on a different script http://www.actionscript.org/showMovie.php?id=459
the scripter has made very useful comments and it helped me loads!!

My current problem is referencing. I would like to index my pages with the same animation as http://www.systemminds.com/fxindex/brochure.htmcan anyone help?

Posted by: clarice on March 26, 2004 01:00 AM

Had reports of a versions of IE Windows where it doesn't work at all (ie no click and drag)...anybody had this problem?

Tim

Posted by: tim on March 26, 2004 06:29 PM

Good news about version 2 - love to see that version - when is PF? IS that the Flash conf in SanFran?...

Anyway count me in for beta testing ;-)

Posted by: Tim on March 26, 2004 06:30 PM

I, my name is Benoit Grenier and I'm student in multimedia.


I have a little bug with the paper flip of your script. I put the .swf in a HTML 4.0 page and when I drag the page and the mouse go out of the frame, the page follow the mouse all the time. I need to click another time to drop it.

Please, can you help me to find a solution. I try a function "OnReleaseOutside" and doesn't work.

What type of function can I use to resolve my problem.

Posted by: Benoit on March 26, 2004 08:22 PM

"I still can't figure out how to make a movie clip on the right page play only after another movie clip on the left has finished. Any body got any suggestions?
Also, how do I make the movie clip stop and stay on the last frame even after I flip the page (with tim's "play only after the page has settled" code)?"

Anyone got any suggestions?
I am desperately seeking help (found out the project is due on Tuesday...). Thanks.

Posted by: Joe on March 29, 2004 01:25 AM

It's me again ... desperately trying to find the answer to flipping the pages with a button, any ideas when version 2 will be out?
If anyone knows how to it i would be very gratefull , i am doing a website as a favour for a designer friend and wanted to be able to flip his portfolio page by page with buttons, he's just starting out and needs a jump start with a great site.

Thanks all

lawro

Posted by: lawro on March 29, 2004 03:16 AM

Okay, I finally figured out how to solve my first query thanks to someone from a forum (Thanks).

Any suggestion on the second part?

"Also, how do I make the movie clip stop and stay on the last frame even after I flip the page (with tim's "play only after the page has settled" code)?"

(if not, then that's okay, since I don't think it's too important)

Posted by: Joe on March 29, 2004 01:38 PM

Great source.Thanks Quasimodo!

Posted by: iouki on March 29, 2004 04:03 PM

*cough* it's Quasimondo with an 'n'...

Quasimodo is the Hunchback from Notre Dame which I am not. At least my girlfriend's name is Alexandra and not Esmeralda.

And you've got to thank Macc, as in this case I was only the inspirator and the messenger.

Posted by: Mario Klingemann on March 29, 2004 04:30 PM

Joe - try using globals (_global.stopped = true etc.) rather than _root - otherwise I can't really tell from here what the problem is.

One thing - anyone had issues with older computers ie CPU speed/slowness/jerkiness during turning? The Pentium 4 3Ghz here is fine - my old AMD 1.3 Athlon struggles tho (it is crippled machine tho so might be the machine...) - especially on larger pages sizes (I'm not using full page JPGs either so I'm not sure what's causing it)

Any ideas? What's the test-bed / baseline spec for Multimedia PCs nowadays - Pentium 3 or 4?

Posted by: tim on March 30, 2004 04:22 PM

Would anyone be interested in having a project dedicated to page flipping posted on sourceforge/freshmeat so we could all contribute to the development of the fla via CVS?

Posted by: Wes on March 30, 2004 04:41 PM

Can anyone give me a hand with is referencing. I would like to index my pages with the same animation as http://www.systemminds.com/fxindex/brochure.html
please can anyone help?

Posted by: clarice on March 31, 2004 11:39 AM

Clarice - I believe this functionality is available in version two from Macc

Paul

Posted by: paul on March 31, 2004 12:37 PM

Hi All,

Macc...amazing work...much gratitude for the excellent script. Do you have an estimate as to when version 2 will be ready?

cheers

Posted by: Nader on March 31, 2004 11:30 PM

Thanks time, yeah, I figured it out now. :)

My project is done already, but I got one more question. :)

What can I do to make the page flip easier? What I mean is the user only has to flip it around 50-60% for it to go to another page instead of having to do it the whole way (some of my friends were complaining about it being hard to flip :/).

Posted by: Joe on April 1, 2004 09:33 AM

Thanks Paul.
I won't ask when version 2 will be released as Nader has already done so... but I hope its sooooonnnn :)

Posted by: clarice on April 1, 2004 10:31 AM

I want so badly to use this with images 350 X 350 pixels. But I am limited when it comes to understanding the script in Flash MX. Can you make a template that I can just paste my images into? Or what specifically do I change in the original page flip? The instructions you posted had the following text...

"at _root/pages/mask/ you find a graphic element, that is 500x900 px-> change it to 500x1200 (or higher if it's not enough)"

I see no 500x900 anywhere in the action script? Where exactly are those values?

Thanks for your help! You deserve incredible praise for this work!

Tom

Posted by: Tom Garber on April 1, 2004 11:35 PM

Hi!

V2 is not ready yet... sorry, but i'am switching these days to Mac... :)))

well. the code is finished, but i must make some page, with demo effects, animations... and ofcourse i try to make a cool design for it.

coming soon...

Posted by: Macc on April 2, 2004 02:44 PM

Hi guys,

I made a auto-flip myself (pretty good, still some bugs) for a school project.

PLZ ONLY WATCH IT AND DONT COPY IT, ITS COPYRIGHTED!!!

check: http://home.aim.hsbrabant.nl/s135561/files/flip_beta.swf

Posted by: SuperDeLux on April 6, 2004 11:32 AM

In referance to the posting by SuperDeLux (after viewing his example) I'd like to see a method to zoom in on elements of the page, in a comic book fashion, like the dotcomics that marvel do, but keeping a unique pageturn,

I love Mario's and Macc's sytle of page turn for its fluidity, but dislike the systemminds style of turn, as its very rigid.

I'd like to see links to external jpg's for easier updating of web enabled page turns, but really can't care less about an autoflip, since it nagates the need for the page turn dynamic, could please someone explain the preocupation with an autoflip? I think an in-page zoom is a much more usefull fuction.

Anyway keep up the good work!

-Kal

Posted by: Kal El of Krypton on April 6, 2004 03:54 PM

Fantastic! The most impressive Flash thing I've seen in a long time. Aside from the suggestions listed already, my question is "can this the pages be dynamic?"

Posted by: Joel on April 7, 2004 12:37 AM

Kal El of Krypton, would u be able to make urs open source or would u be able to gimme a heads up on how to make that page flip???

e-mail me if u like: digital_pimp128@hotmail.com

thanks!!!

Posted by: tyrell2nexus on April 7, 2004 06:47 AM

THIS POST IS FOR MACC.
MACC, can I have your email address? I guess you have created a masterpiece. I am newbie and I need your help in some flash work. I will be grateful to you. Please help.

Bis

Posted by: PriBi on April 7, 2004 08:18 AM

Hello,

I am desperately looking for a flash movie with the page turn effect, but I want it to be so that only the corners of the RIGHT page are dragable, not the entire page, while the left page is entirely dragable like it already is. Yes I know, strange, but I'm a graphic designer, I'm allowed. Hope anyone can help me out with this one. It would be highly appreciated.

Martijn

Posted by: Martijn on April 10, 2004 07:45 PM

Hi

I uploaded a pre-release version of PFv2:
http://www.iparigrafika.hu/pageflipv2.html

Posted by: Macc on April 12, 2004 06:37 PM

Nice v2 demo Macc!

Will we be able to load external jpgs in this version, too? Is it even possible?

Greg

Posted by: Greg on April 12, 2004 07:11 PM

V2 looks like everything we've been hoping for.
I especially like the transparancy effect with the underlying page, very nice.
Can't wait for the final .fla to be posted. Thanks for throwing us a bone Macc!

Posted by: Wes on April 12, 2004 08:20 PM

To address Martijn post:

Scroll up the blog and find the post that tells you how to set the clickable area of the pages. You should be able to adjust this to fit your needs.

Posted by: Nader on April 12, 2004 08:43 PM

Macc version 2 looks great. Nice added features. The only one that is not there would be the load external .jpg? Have you had any luck with this?

Posted by: agro on April 12, 2004 11:53 PM

I have had the same problem as greg with loading external jpg's ... they reload on click and the images flicker ... i have tried getting the onEnterFrame to work but without success. Can anyone help me to get this working????

Thanks in Advance

Posted by: lawro on April 13, 2004 04:01 AM

Hi all, I am trying to animate PDF pages turning on a magazine but am not getting anywhere. Does anybody know of any tutorials out there that would tell me how to make a model of a PDF magazine and turn the pages.

Posted by: humbert on April 13, 2004 06:09 PM

Hi!

I have made a dynamic page loader. It can loads external .swf, and (or) .jpg too... But it loads all content at the start!

Posted by: Macc on April 13, 2004 06:51 PM

Macc,

Great! That pretty much answers all of my questions. Can't wait to see it. Thanks.

Greg

Posted by: Greg on April 13, 2004 07:18 PM

All the content at the start is just fine! Macc you rock. My hat off to ya.

Posted by: agro on April 13, 2004 10:43 PM

Fantastic macc ... we're all gonna owe you one.

Posted by: lawro on April 13, 2004 11:21 PM

First of all, really nice done Macc, the best ive ever seen in flash. When will the v2 version be out in fla?

I really need this one, would it be possible for you to send the v2 fla to me? ;)

The project im into now have a deadline in two weeks.

/ Johan

Posted by: Johan on April 14, 2004 01:48 PM

Hello Macc ! Could you give me an email adress where i could contact you in order to show/explain you what i've done with your script. The whole soft is quite huge (50 MB) so i would like to send you a cd-rom.

Thx !

Posted by: Julien on April 14, 2004 04:57 PM

I really like the page flip effect but need it to work in Flash 5, I've been working on the mods to get it in line with flash 5 ie no setmask() or moving of mask objects. I have got most of the way there but I'm stuck on replicating the movement of the gradient which creates the curl effect on the page, and its associated mask. For the most part I'm moving movieclips containing the pages complete with their masks using figures similar to the original code, and then moving subclips of just the pages in the opposite direction to achieve the appearance of the mask moving whilst the pages remain static. I'm then using a separate function to move the pages as per the original code. In case of the gradient, the original code has the mask moving and then the subclip of the mask moving also which Flash 5 won't do. Anyone managed to figure out the alterations to the math to get the movement right so that the mask for the gradient will move along the same path as the page without the need for this nested mask clip movement?

Thanks

Posted by: Ian on April 14, 2004 10:15 PM

Page resizing question:

I've been reading about and playing with this issue for some time now.
I can't figure out how to make a page size of 600x900 work without throwing the layer masks and such all out of whack... Does anyone have any definitive ideas?

I've also noticed that imput text fields (and dynamic ones as well I think) leave a 10-15 px trace of themselves on the underlying frame while the page is being turned.

Thanks

Posted by: Wes on April 15, 2004 04:33 AM

Great stuff this, and version 2 is highly impressive. As with others on here I'm hoping to implement this in either a final project or my portfolio when I get around to doing it in the summer. Keep up the good work and I look forward to haveing a look at the V2 .Fla version when it is released.

Dave

Posted by: Big Dave on April 15, 2004 04:00 PM

Tryed to download the file but it wont open.
Flash says it's in an unexpected format.
hmmm.

Good work!
Thanks Robert

Posted by: Robert Singleton on April 17, 2004 05:12 AM

Yohh Macc can you put external files on the pages in v2 like swfmovie on the pages if this is possible...

Posted by: esogut on April 17, 2004 12:23 PM

Will this be available soon either for free or for $$$? I could REALLY use a version that could incorporate JPEGs from an external directory with a simple next page/ prev page navigation method.

Posted by: Scott Griebel on April 17, 2004 06:28 PM

Incredible! Great job, guys. This thing has it all.

One little suggestion/request, if that's not being too demanding, since I don't know you, but:
Is it possible to give the hardcover an edge, some dimension when it turns, so as to look more like a book cover? Either way, it's great. Just a little thing.

Posted by: Joel on April 20, 2004 12:05 AM

You have did a wonderful job compared to the other book tutorials are clips that I've seen.

Great job!

Posted by: Pamela on April 20, 2004 05:27 PM

Hi Macc! I'm really impress with your work, count me as one of your fans. :)
I just learned you now have a new version and It's more cool, I saw it a while ago. Can you pls share the fla to us.
Thanks for sharing your work.

Posted by: Cecil on April 21, 2004 07:39 AM

Just a heads up on the PageFlip v2.
My company decided to fund the development of v2 so it would come out faster.
Macc tells me that it will be avaliable for us all to play with by Monday.

Not looking for a pat on the back but I know a lot of you (myself included) were very interested in the second version coming out as soon as possible.
I do urge everyone who uses this in a commercial capacity (or if you just particularly like it) to send Macc money (he preferrs Western Union but I'll let him give you the address of where to send it).

-Wes

Posted by: Wes on April 23, 2004 04:50 AM

Hi,
Earlier today I downloaded the source code for the page flip, which by the way is incredible. Thank you so very much Macc. I have been playing around with it all day. I'd like to add a few more pages, but I'm having trouble. I have read through all of the above posts and tried to firgure it out. I successfully added a 9th page but it is only on the reverse side. It's like I skipped a page. Can someone help me figure out where I'm going wrong? Thank you...

Posted by: Amanda on April 23, 2004 07:10 AM

Thanks Macc!

tis' beautiful.

Kurt Dommermuth

Posted by: Kurt Dommermuth on April 23, 2004 07:06 PM

Thanks Wes ... thanks Macc ... when i use it commercially i will defintely send some money to Macc.

I will check back Monday to see if it's available.

Posted by: Lawro on April 23, 2004 07:36 PM

cant wait till it's monday,
it's gonna be a good day :)
(can't wait can't wait :)

Posted by: Christian on April 25, 2004 06:41 PM

whats your address MACC
i'll have my hungaryan aunt drop by and give you i big kiss and maby head massage, this one must have been a headhurt:)

Christian Rajkai / DENMARK

Posted by: Christian on April 25, 2004 06:45 PM

Has anyone else experienced this. When I embed the flash swf into an HTML file and then run the HTML the flash doesn't work correctly - The pages do not flip. Only the first page flips but it doesn't stay put. Once you move your cursor to the right in preparation to flip the next page, it doesn't release the first page and so the first page comes back to the right side.

Thanks
James

Posted by: James on April 25, 2004 08:00 PM

I tried to load image externally with:
pages.p1.page.pf.ph.createEmptyMovieClip("pag1", 1);
pages.p4.page.pf.ph.createEmptyMovieClip("pag4", 2);
pages.flip.p2.page.pf.ph.createEmptyMovieClip("pag2", 3);
pages.flip.p3.page.pf.ph.createEmptyMovieClip("pag3", 4);
pages.p1.page.pf.ph.pag1.loadMovie("page"+p1+".jpg");
pages.flip.p2.page.pf.ph.pag2.loadMovie("page"+p2+".jpg");
pages.flip.p3.page.pf.ph.pag3.loadMovie("page"+p3+".jpg");
pages.p4.page.pf.ph.pag4.loadMovie("page"+p4+".jpg");

but everytime i click, the images load again and the page flick.
How can i correct it to load external images?
Tnx.
P.S. Congratulations!!! Veeeery good project!!

Posted by: Mr.Dongle on April 25, 2004 10:06 PM

I think Derik Lolli and Mario Klingemann had the answer to the problem of the pages "sticking" and it was that you should set it to 100% and stage.scale="noscale". I'm sorry but I'm a newbie so can either one of you explain what this means. Where do I set the 100% and where do I add the "Noscale" statement.

Thanks, Much appreciated.

Posted by: James on April 26, 2004 03:58 AM

is it monday yet...?

:)

Posted by: christian on April 26, 2004 01:50 PM

I await the fla with great anticipation ... :)

Posted by: lawro on April 26, 2004 02:48 PM

Macc finished v2 this weekend (Sunday to be exact). Now I'm trying to coordinate with him where to host the v2 zip.

Posted by: Wes on April 26, 2004 03:46 PM

Macc still wants to add a preloader and working buttons on the pages.
He tells me he will post it tonight. He is GMT+3 whereas I am EST or GMT-5.
Just keep a close eye on his site http://www.iparigrafika.hu/ for him to post it.

Posted by: Wes on April 26, 2004 04:14 PM

AHHHHHHHHHH

Your killing me. The antisipation is just killing me!!

I know it will be worth the wait.

Posted by: wilber on April 28, 2004 07:04 AM

Hey Macc,

Just watched the demo version.......WOW !!!! That looks great. Thanks for taking the time to create such an awesome feature. I'll be checking back for the source code.

Posted by: Hananya on April 28, 2004 09:17 AM

'llo there,
this is fantastic work, I'm frankly gob-smacked.
I made a page-turner for myself but fell back on a timeline controlled by script as I couldn't figure out the fully scripted version! Its not as smooth or elegant, or as clever!, but it can be dragged around and depth-swapped and all the elements are loaded externally. Its at www.andyfoulds.co.uk in 'webdesign' in the 'samples' section, 'coffe table books'. You can toggle between rollover operation and click-and-drag as well.

Posted by: Andy Foulds on April 29, 2004 04:48 AM

Agree...love to book.

My question is regarding V2...will it include the ability to load exteral objects like swfs, jpgs, flvs.

I was successful in modifying size and pages but when I try to add flvs using the media componant the reload. I've noticed others are having the same issue.

Is there a work-around or fix in V2 or the current version.

Peace.

Posted by: Berryb on April 29, 2004 05:55 PM

Sorry yall for not posting the link, Macc wants to post that himself. But as one who has seen and played with the v2 source, I think I can answer a few questions about it:
You can externally load anything that Flash can render as an object.
It explicitly supports loading any image file type that flash knows how to deal with without an external converter (i.e. no .tiff or .psd files). It also is able to load .swf files as well (which Macc has included scripting support to let the page know when it is loaded and turning and setteled...
I haven't tried loading .flv or any other movie flie but I imagine they would work the same as an image, provided Flash dosen't need an external converter to understand it.

There is a dynamic and a non-dynamic version of v2. The dynamic version takes a bit longer to load than it's counterpart, and Macc is working on the preloading animation for that.

Posted by: Wes on April 30, 2004 01:20 AM

Thanks for the update. That's good to hear! Any idea when the source is available?

Posted by: Berryb on April 30, 2004 02:45 PM

"will be ready FOR ALL by the 25'th"
and then COMPLETLY silence for a week...
humm, this does smell right...

Posted by: kylie Minouge on May 1, 2004 03:39 PM

this guy uses the page flip really well in his portfolio.
http://www.ds03.de/

click on projects

Posted by: vince on May 2, 2004 06:38 AM

Yes the site looks good, only the page flip is just the keyframed version.

Posted by: Mario Klingemann on May 2, 2004 11:19 AM

antother page turner http://dirtypaper.cruz.be

Posted by: brent valskur on May 2, 2004 05:52 PM

I'm sorry to be awkward, but i'm getting a bit confused with the stuation here. I've been interested in this code from a very early stage and i was led to believe that v2 would be available free, however Wes has paid money for the code and has recieved the source for V2 ... do I now need to pay money in order to recieve the source? I don't want to appear ungratefull as i think what Macc is doing is utterly fantastic, but i just want to know the situation so i can make a judgement call ... if it does cost money then how much ?
Once again i will stress that I'm not someone who expects to benefit off other peoples hard work for nothing ... but i just want to understand where i stand with this.
Thanks

Posted by: lawro on May 3, 2004 04:51 AM

Hi everybody!
What a nice day!!!
PageFlip V2 is online at http://www.iparigrafika.hu/pageflip/
The sourcecode is available for download in the book's page 3. Just click the link.

Posted by: Macc on May 3, 2004 03:32 PM

a good day indeed :)

Posted by: lawro on May 3, 2004 03:34 PM

Great Job Macc
I've been waiting to see the updated version of your PF.

Isn't there a way to show (even if static) more pages in the background so that i can create the effect of a dye cut pages. (i.e. when a book is cut to show indices like in a dictionary).
I layered a couple of pages and only the nearest two pages are shown and new ones pop abruptly.
where can i increase the number of pages to be attached so that there depth is below the current top most page.

thanx man

Posted by: Basel on May 3, 2004 04:16 PM

Basel: it is possible.. but it can be very very slow if you have a 100 pages book.... Now you have only one page hidden behind the visible one...

Posted by: Macc on May 3, 2004 04:37 PM

Haven't had a chance to fully check out the source, but just wanted to say thanks for keeping it open source and for all the time you've spent, Macc. We really appreciate it (and it looks amazing).

It's going to be a long day.

Posted by: Greg on May 3, 2004 06:14 PM

Agreed, thanks for all your hard work!

One question: is it possible to turn the pages faster. For example, if I'm on page 3 and want to get to page 20. Can I flip through the pages quickly or is it just one at a time?

Thanks again for the great work!!

Posted by: Lynch on May 3, 2004 06:26 PM

nice job. thanks for your hard work. I hate to be the first newbie to enter into the ring, and risk getting my hand slapped, but if someone could clue me in as to best ways to customize w/o destroying the thing, that would be great.

Adding pages?

Changing size (is masking still a problem)

Moving nav off page, etc.

Thanks again Macc. World class code (and just world-class class, in sharing your code)

Posted by: tom on May 3, 2004 08:16 PM

Thanks for posting v2.

I read that this version allows for loading exterals...jpgs, swf, that sort of stuff. As soon as I downloaded v2 I tried exactly what I had tried with v1.x...bring a custom video player that plays .flvs into a given page. My player works and I've tested it online. However, when I bring the player (which is a self-contained movie clip) on to a page or try to load the player using loadMovie I still have the reloading of the loaded MC or flv.

In addition, with v2, however, the clip reloads even when I roll over th page edge(the corner).

Any Ideas as to why this is happening? You indicated, "dynamic page content"...am I missing something?

Thanks again for getting v2 up.

B

Posted by: Berryb on May 3, 2004 09:25 PM

I'm not understanding the loader or the how to load in external jpgs into the book... Anybody care to enlighten me?

Posted by: Greg on May 3, 2004 09:25 PM

Wonderfull code Macc and what a great thing to do by making it opensource. Thank You

Does anyone out there know how to load an external image in a page on V2 ???

Posted by: Lawrence on May 3, 2004 09:26 PM

Bloody marvellous!!
And an act of supreme generousity to opensource all this work. I expect to see alot of it about!

Posted by: Andy Foulds on May 3, 2004 09:47 PM

This is good stuff. Am really impressed with your work. It looks good and it works good. A brilliant job!

Posted by: Martijn on May 3, 2004 09:57 PM

I believe Wes mentioned there was a dynamic and non-dynamic version of V2 ... i guess this must be the non-dynamic source code.
Will the dynamic V2 be available soon?

Posted by: lawrence on May 3, 2004 11:14 PM

Macc, you can be rest assured that every time I use this you will get credit for it. This is just the best!! Great work m8!

Posted by: agro on May 3, 2004 11:33 PM

Finally !!! Congratulations!!!!! And now...some questions:
1) How can i load external swf or jpgs ?
2) How can i load dynamic content or use it trougth a XML code?

Posted by: Mr.Me on May 3, 2004 11:53 PM

About the loader :
Embed the loader to your web pages and it's him that will load automatically the pageflip

Posted by: Laurent on May 3, 2004 11:59 PM

maybe it is because i am a coding idiot, but how do you get the gotoPage( destinationPageNo ); function to work? i can't seem to get it working properly

Posted by: matt on May 4, 2004 12:34 AM

Mac..

About loading more pages in the background... if the book is only 10 pages... it won't be so heavy... i can try and mess with the code, but i wanted to see if this feature is already built in the code.

All the credit will be given to you whenever i use this code.


Opensource rules!

Posted by: Basel on May 4, 2004 07:43 AM

Hey this is really SUPERB!!

One little question: Is it possible to use real text in the book?? so that I don't need to break the text apart every time. I need it for lot's of text that changes regularly.
It would be fantastic if there is a way to get the text trough a txt file!
Thanks for all this great work !!!!!!!!!!!!!!!!!

Posted by: JPX on May 4, 2004 10:41 AM

Hi!

I just uploaded the dynamic version of the pageflip_v2. But it is not so perfect i hoped... It loads 8 times every page, and don't want to load them from the browser's cache:((( I have plans for a totally recoded version, but it is time to finish it:) well, to be continued...

the URL of the dynamic loader version:
http://www.iparigrafika.hu/pageflip/pageflip_v2dyn.zip

Posted by: Macc on May 4, 2004 01:37 PM

JPX: real text is supported, but non system fonts!!! it can't be masked... You can use any FlashMX content on a page, whatever is it: Texts, JPGs, Animations, Movie (imported MOVs or AVIs, etc...)

One more thing: i removed old versions.

Posted by: Macc on May 4, 2004 01:40 PM

CompUSA has some version of a page flipping catalog on their site at http://compusa.dailyshopper.com/

It looks similar to some of the examples posted here but I can't really place it.

Posted by: Wes on May 4, 2004 04:33 PM

ok thanks Mac it works excelent now!
Is there a way that you or someone else makes a litle guide with the possibilitys and help with using these??
I know how to use most of the functions with the actionscript but there is one thing i need and i don't know how to use it.
How do i use a external txt file?
I need a book with lot's of text that comes out of a text file.
Can anyone help me with this?
And if it's possible i also want to give the txt file tags like bold and so on

Thanks JP

Posted by: JPX on May 5, 2004 11:12 AM

Wes: the compusa looks like the a version of the kinbook.fla

Macc: I am trying to load dynamic text inside page2.swf but it always reloads everytime the page is flipped ... is there any way i can stop this ??

P.S. I'm having great fun with this code ... :)

Posted by: lawrence on May 5, 2004 05:53 PM

JPX:

You can load variables from an external source that can spit out variable=value pairs (text files require newlines between the variables so they are all on seperate lines).
if you have database content, you might consider using XML (but if you are new to it like me, you might run away screaming).

For formatting, you want to make the dynamic text region able to render HTML. I think it does it by default in the pre 2004 versions of Flash. From there you just use HTML as nessacary.

Posted by: Wes on May 5, 2004 11:22 PM

Thank You Wes and Mac!! you've been great help for me!!

Posted by: JPX on May 6, 2004 09:38 AM

Ya know, I am supprised that nobody has mentioned an actionscript (.as) file for loading external data. At lease I think nobody has. I have a .as file that loads external data, and anybody can edit it. You can even use notepad to edit it.

Posted by: AGRO on May 6, 2004 02:22 PM

AGRO: I'd like to take a look at that .as file if it is avaliable.

Anyone else here working on a gotopage() function that flips to the target page without flipping through all the pages in between?

Posted by: Wes on May 6, 2004 03:19 PM

Hi Everybody,

Has anyone figured out how to make the page turn on a click instead of dragging the mouse accross? I noticed that if I drag that page slowly, the page likes to follow my mouse back over to the right again.

thanks
Shaun

Posted by: Shaun Roos on May 6, 2004 11:30 PM

I got the resizing issue resolved. From Macc:
no problem. you have to increment the size of 4 element:
(manually or from a script)

pages.mask: from 800x1500 to 1200x2500
pages.pageGrad: from 150x1500 to 150x2500
pages.flip.p3Shadow: from 100x1500 to 100x2500
pages.flip.flipGrad: from 400x1500 to 400x2500

This sets the gradients and some of the masks to be the right height, but the code resizes the width. What I ended up doing was changing 2 lines in the calcx() function, in the flip forwards and flip backwards if blocks to:
pages.mask._xscale = 150; // if
pages.mask._xscale = -150; // else

This allows me to use 600x900 page sizes without badly hurting Macc's code.

Next up is making that gotopage() function work without flipping through all the intermediate pages.

Posted by: Wes on May 7, 2004 12:56 AM

Ok...
1. So, opened it in MX04Pro and trying to publish with player 7 and AS 2.0 or 1 and says the script is running slowly and may cause my compter to lock.

2. I took my custom flv player (self-contained MC) and put it on page three.(opened page three .fla and added it). Then uploaded the book to my server and ...video does not play. If I access page3.swf directy by typing in the url it plays fine.

I'm going to re-download the source and start from scratch, but if there are any suggestions in the meantime, please advise.

Posted by: Berryb on May 7, 2004 02:01 PM

Re-downloaded, started from scratch and same thing happened. page3.swf worked fine.

This time something new happened, and it happened more than once. When accessing the book, it never loads but I hear the Video's audio, then another instance of the video must load because I hear it again, and no book. Very strange? I've been trying everything I can think of.

Posted by: Berryb on May 7, 2004 02:32 PM

One more thing...if I play it locally, off hard drive, I get the following results:

Book always loads fine, but page three, which has the flv player, does not play or load the flv. If I just open page3.swf the video player is there and the video plays fine!

I am viewing this all throgh a brower, not the standalone player.

Posted by: Berryb on May 7, 2004 02:37 PM

hi,
it was a great stuf i have a little query i am loading the images dynamicly for the image folder and it is running perfactly but when i put it on the server it is not displaying the images

pls can u help me

bye

Posted by: pawan shekhawat on May 7, 2004 03:05 PM

Great stuff... however, I have a problem. I am loading 4 of the book swfs on to the main stage of a new movie, and want to make it so that depending on which book you click to turn the page, swapDepths of that movie to the top most level so that the pages go above the other 3 books. I know how to do this, however, what happens is that when you fist click on the movie to swap the depths, the main page turns invisible for a split second, then everything works fine after that. Any ideas how to prevent the pages from disappearing when you swap the depth of the MCs upon clicking them?

Posted by: Steve on May 8, 2004 12:05 AM

hey guys... i've added some code that shows the pages below so i can simulated die-cuts in paper.. ie, u can see indicies for pages. I optimized the clips so that when not in use they only show borders and what ever part that superimposes.


i'm now gonna work on page-tearing that will submit a form upon tearing the filled form. i'll add something like a listener and event broadcasting.

by the way macc, how do u get a teared page back in place without reseting the whole book?

Thanx macc...
Open source rules!

Posted by: Basel on May 8, 2004 10:20 AM

one more thing macc...
I am working on multiple page sizes (ie.. an insert in the middle) and want to change shaddows and other stuff based on the current moving page size... is that easy or shall i dig deep?

Posted by: Basel on May 8, 2004 10:23 AM

Hi folks, I am working on a Flash-CD and want to use the flash-bookV.2.(nonDynamic) The problem is to link the book in flash. I made a new scene with a movieclip, which contents the book and the script.
(I made the same with pageflipV.1 and there it works fine!!!)
But with V.2 it doesn`t work. On test it loads after the link-click nothing and then there came an alert that the code slows down the flash player and the computer will lock when i decide the script goes on...
@Berryb: it seems you have a similar trouble(?)

Has Anybody a Idee to fix the problem ????

I am only a grafik-designer not an Action-Script-Profi, so Thx for your help all the profis there and
sorry for my bad english ;)

Thx for sharing your excellent work @Maac

Posted by: LinuX on May 8, 2004 02:02 PM

Oh, forget the problem on top:)
Founded out: In Flash MX04 there is in the release settings standard Flash Player 7.0 marked,
with marked Flash Player 6.0 it works absolut fine.
Sorry for that stupid question ;)

Posted by: LinuX on May 8, 2004 05:51 PM

At http://www.ls-grafik.de/lived.htm
you can see my finished work:
A Book that i made 2003 with my best Photos.
How can i "show" the loader?
Actually you can't see how long it loads:(

Posted by: LinuX on May 9, 2004 02:44 PM

LinuX, probably the easiest way is to add a scene to your movie. Make your new scene the first played and add a loader to that scene.

Posted by: AGRO on May 9, 2004 05:00 PM

Hi everybody,

Thanx Macc and Wes for this amazing code.
But i've got a problem with resizing the pages to 490 x 600 in v2.
When i publish the swf and turn the pages, some pages are turned incomplete, sometime they do sometimes they don't:(
I resized every thing like Wes said in the comment up here, but still no luck. Anyone have a sollution?

Thanx a bunch

Posted by: Marshall on May 10, 2004 05:53 PM

AGRO: I'm interested in your external script!

Posted by: elgallo on May 10, 2004 07:45 PM

For my recent flashconference session I have started from scratch and created another page turn component. It is not as feature-packed as Maccs, but you can choose any pageformat you like. The current version is here:

http://www.quasimondo.com/archives/000376.php

I will try to add more features in the future, but perhaps for some people the current might be sufficient.

Posted by: Mario Klingemann on May 10, 2004 07:50 PM

Can i have a look at that actionscript agro ... or does anyone else know how to use dynamic text inside the pages without the text reloading everytime the page is turned ??
Macc .. can you help out?

Posted by: lawrence on May 10, 2004 09:46 PM

Hey great script - thanks very much for the post and script - one of the most eye catching flash scripts about !

I have seen a few posts on this (but alas not a solution) but I am trying to 'stack' the pages so that any tabs on the first page will still be visible once you reach page 4 or 5.

I think Macc had said (on post 3rd May 04) that it was possible but you wouldn't want 100 pages as it would become tediously slow - but is there a simple amendment to the actionscript to remove the deletion of the pages ??????

Again thanks !

Posted by: dc on May 10, 2004 10:07 PM

As far as the external .as file, (refering to the dynamic .fla) it is just the text in the first frame that you can edit. I just copy and paste that in the .as file, then deleted them in the .fla. It is really nothing special at all.

One of the bad things about having an .as file is that you need to republish your .swf when ever you make .as changes. Not alot of people know this who don't work with .as files, but when you publish a .swf, the .as file becomes part of the .swf.

So, .swf files DO NOT load .as files at runtime, they load the .as at publish time. Very important to know.

I have had a thought of having the .as file load from an .txt or .xml file. Not sure if that would work. Have to try something...

For the ones who would like the link:

http://www.ericvision.com/pageflip/pageData.as

Posted by: AGRO on May 11, 2004 12:45 AM

Wes, I'm trying to get exactly that. Sorry, I tuned out for a few days and didn't see your post. The good news is you're not alone, the bad news is I'm not very far in the process.

Let me know how you progress.

Posted by: lynch on May 11, 2004 05:29 AM

great code! Could use some suggestions on resizing pages, and also, I'd like to rotate the whole thing 90. I tried making the whole thing a movie clip, but that just ended up in Flicker Land.

I've reviewed resizing tips from v 1, but not sure they apply.

From the sounds of it, the dynamic fla is less stable. Is this correct.

Thanks, all.

Posted by: tom on May 11, 2004 04:56 PM

Does anybody know how to make animations or movies only start playing when the page is openened (and possibly let them stop when the next page is openened). Thanks

Posted by: Martijn on May 12, 2004 11:02 AM

Just to see! Great Great Great! Thx a lot for the dynamic version...

Posted by: Cop on May 16, 2004 10:16 PM

u guys should check this site out
www.stovila.com using MACC code.

i couldnt download the code from the website anyway. As a matter of fact, i couldnt open the site :(

Can anyone offer me an alternative site to download MACC actionscript?

Awesome job by the way, i am a big fan of actionscript and cant wait to get my hand on your codes. Open source rocks!

Posted by: alvin on May 17, 2004 01:38 AM

Hey I played with the program, the only problem i have is that i want a nice preloader with % end an progress bar.
I already have these scripts and they are working fine on other flashes but not on this flash the scene with the progress bar and % is invisible untill it's loaded for 95% does anyone know a way to get something like this working??
I also tried mac's preloader but it didn't really show anything during the load procedure and i don't want a external file.

Thanks JP

Posted by: JPX on May 17, 2004 04:01 PM

Has anyone come across problems adding more than 10 pages? I'm trying to do a resturant menu and it has 22+ pages and i'm getting errors where the pages are not turning but you get a "ghost" page turn, also is there a way to get the current page to know what page it is (eg pass it a variable?)

see my pages query a database which populates the text of the pages, and the file will be even smaller if the same page could be used to populate the 22+ pages that where needed,

Thanks in advance.

Posted by: Kal El of Krypton on May 17, 2004 11:00 PM

Hi to all, this demo looks amazing!

When I try to download the source fla it is gone though. Does anyone have a link to it still?

Thanks

Posted by: Matt on May 18, 2004 07:18 PM

Oh... one question! Mario...
I need to use an interface with the flipbook like this page : www.makro.be

I suppose that I can use the clickarea to use a next/previous buton?

Thx in advance

Posted by: Richard on May 18, 2004 08:02 PM

where is the source file? page is gone.....

Posted by: mike on May 18, 2004 08:44 PM

Macc had removed the old pageflip. I've updated the link now, it points to the new sourcecode.

Posted by: Mario on May 18, 2004 09:10 PM

Hey i'm making really great things whit this pageflip!!

I only have 1 problem....
My complete book works fine only the hard cover has a big problem when i look at it online.
When i click on the cover to turn it it disappears fot a second like a flicker this is not nice...
He only does this when i visit the book for the first time so to see it you need to clean your browsers cache.
The book also has this problem at ipagrafika's site.

Can anybody help me with this problem or is it just this way and do i need to accept it.

Thanks JP!

Posted by: JPX on May 19, 2004 11:41 AM

richard-- next page forward is simple

buttonnamehere.onRelease = function ()

gotoPage(No. here);
[or ]
autoflip();


However, haven't figured out going backwards. Anyone?

Is there a variable that stands for current page, so we could use gotoPage (variable-1) ?

Posted by: tom geary on May 20, 2004 09:00 PM

Hello Jpx.. thx but i have found the solution. For the backwards direction (gdir), see below...

Mario, your code is great. Preloading version??

To go to the previous page :
on (release) {
aflip=false;
flip=false;
flipoff=false;
canflip=true;
gdir=-1;
gflip = true;
autoflip();
}


To go to the next page :
on (release) {
aflip=false;
flip=false;
flipoff=false;
canflip=true;
gdir=1;
gflip = true;
autoflip();
}

To go to the end, begin of the flipbook :
on (release) {
gotoPage(XX);
}


Posted by: Richard on May 23, 2004 09:42 PM

Hey i've got one (hopefully) last problem......
I've set the size of the swf in my html site in 100% because i want the book to resize to the max of the screensize.
This won't work, when i load the page it's still the original size.
When I F5 or Refresh it does go 100%
lokk here for the example: http://www.pannenhuis.nl/paginas/menukaart.html
i've been thinking of a automated refresh but this is'nt an option because of the refresh loop it get's when i do this.

Does anyone know a way to deal with this????

TNX!!!
JPX

Posted by: JPX on May 24, 2004 09:56 AM

anyone figured out a way to print a page???
I'm stuck on this feature i can't get it done

Posted by: Janpieter on May 24, 2004 02:21 PM

Richard, thanks for the forward / back code, above.

Here's a question, people: what's the variable used for the page displayed on the right?

I'm trying to link some text dynamically to the pages.

Or, if I add a counter, it seems like there are a few places where the pages flip forward / back.

Posted by: tom on May 24, 2004 07:49 PM

Great code and it will defintely save me time... Question???
It seems like everyone is looking to resize larger but what about smaller. I'm looking to use this is a smaller area of a bio page for a model site I'm creating. How would I make things smaller on this???

Posted by: Seanc on May 25, 2004 04:05 PM

thanks for sharing, excelent job.

Posted by: william Mora on May 28, 2004 07:36 PM

anyone figure out the preloader issue?!

Posted by: elgallo on May 31, 2004 06:08 AM

Never mind - got it!

Posted by: elgallo on June 1, 2004 05:17 PM

Hi,
I wanted to know how you can rip a page off using only a button. Anyone tried this. I'd like to to this feature on a message page where the a onpress action will send the message but at the same time also tear of the page.

Thks,
Smalco

Posted by: smalco on June 3, 2004 01:38 PM

Hi all,

I'm also having the same resize problem...

i tried the emntion in the forum but i couldnt get to resize the pages...i need a size of w:380px, h:410px how do or what do i need to change inorder to get this page size....

Also, i need to make all the pages(i have 20 pages) visible so that i can have tabs(buttons) on the side of page where the user can click on the respective page tab to go to that page anytime.

Thanks for the help in advance!

Posted by: macko on June 4, 2004 06:15 AM

hello, i've been playing around with this page flipping movie, its great!

I've been having problems using this with loadMovie and unloadMovie. on a button it loads the page flipping movie on top of the main movie. there is also a button to unload it and go back to the main movie.

The movie loads in fine. but after clicking on the button to unload it, and then clicking the button to load it again the functionality is gone. it is stuck on the front page.

can anyone help me fix this? i cant figure it out. thanks!

Posted by: kemiajo on June 5, 2004 05:59 AM

Hi,
Is there any way to get rid of the stickiness, i.e the page sticks to the mouse if you drag the mouse while turning, out the flash player. I think this is because of the mouseListener.
Do you have any idea how to get rid of it or work around it.

Posted by: Ram on June 9, 2004 12:53 AM

Thanks so much for this page flip.

I've built three different versions of this before I got your latest version.

The table of contents is brilliant. I love the quality of the page turning.

Here's my example, for a fantasy genre website:

http://www.agyris.net/articles/article_detail.asp?id=96

-- Dazzlegas

Posted by: Dazzlegas on June 9, 2004 01:18 AM

I still resolve the resizing and pages visibility problem...

and on pg 5 i have got an external txt file loaded dynamically with a
scroll bar....when i test the movie...the scroller disappears whenever
the
mouse is at the edge of the page and also the page flipping is not done
properly

can somebody help me...the movie is:

http://202.172.220.208/demo/Wangz/pageflip_wTabs.html

also pls enlighten me on the tabs and resizing problem

its quite urgent...somebody PLEASE HELP ME!

thank You in advance!

macko

Posted by: macko on June 15, 2004 05:08 AM

hi again,

i have solve the resizing problem....still have got the tabs/pages reseting or only showing 2 pages at a time.. :(

macko

Posted by: macko on June 15, 2004 10:58 AM

Hey smalco! This is in response to the preloader question you email about.

The preloader doesn't show up until the last moment because all the book pages are export on first frame of the movie via "linkage" - there are probably many ways to solve this issue, but here's one way:

Go to the library of the pageflip.fla - select each book page movieclip, go to the "linkage properties" panel, then "uncheck" Export on first frame option.

Next: insert frames before the first frame of your movie. meaning: if you have 18 pages in your book, insert at least 18 frames before the first frame of your movie. For each frame, place an instance of one the pages of your book (drag it out of the library, but place it off the stage so it can't be seen; be sure the name the instances of each your pages correctly).

Finally: go to the actionscript for the pageflip. Look for:

onEnterFrame = function() {
trace(getBytesLoaded());
if(getBytesLoaded()==getBytesTotal()) {
gotoAndPlay(2);
delete onEnterFrame;
}

change gotoAndPlay(2); to the next frame number of your movie.

That should take care of the problem. The pageflip script needs the MCs to be loaded first, so that everything will work; however exporting on the first frame via linkage, puts the whole movie on hold until all the pages are loaded; this is why the preloader seems to show up at the last moment displaying the last couple of bytes of the movie.

If I didn't explain this well enough, let me know - I'm just trying to help :-)

Posted by: elgallo on June 15, 2004 07:45 PM

Hi

This script is great.. but I have a problem.. any help REALLY APPRECIATED!.. sometime it does not work.. then you reload it and it's fine... i am loading the flipping pages movie on top of another movie .. i often find that it works ok the first time you load it.. but when you load something else and then go to load this movie again the page flipping does not work.. sometimes if you click loads really fast it will work???? any ideas how to solve this!?

Posted by: Chris on June 16, 2004 04:18 PM

i can't get the autoflip to work - anyone get it to work? am I missing something?

Posted by: Brett on June 21, 2004 04:08 PM

Hi again,

i think this question has been brought up b4...

How do i go to the page directly without turning page by page when clicked on the tab of the page?

Thanks,
macko

Posted by: macko on June 22, 2004 05:51 AM

Does anyone know how to have tabs show up all the way through? They only show up a couple pages before. Please help!

Posted by: Cate on June 22, 2004 09:14 PM

I too am having problems with the autoflip. Any suggestions on how to get it to work?

Also, macc, great script, much respect for you work and your genius.

Posted by: cattlecall on June 23, 2004 03:58 PM

Although the work is perfect, I would like to know how can I add more pages to the original script, becuase I couldnt fin my way out of this.

Posted by: Pityx on June 23, 2004 04:13 PM

Hi, great work, I also have the same problems with Chris, I have 6 buttons on my flash site when click on the flip book, the flipbook will load on the first level then i click on another button the flipbook will unload and reload another swf then if I click again on the flipbook, the flipbook would not work, i'll have too like click the flipper 3 to 4 times before it will flip, dunno what's wrong? Help?

Posted by: Leo Aquino on June 25, 2004 12:48 PM

Hi Marc,
Thanks for the sharing. Finally I can make my great photo's gallery.

Question:
I've problem with buttons inside those pages (linked seperated swf files). When I put buttons in all pages, button on a page appear on next page too... tried put my button in your sample fla file, the button not function on next page, only on the page I need, and thats what I want... so, I dont know if it was happening after changed the size of the book. Help please!!!

Posted by: Gatta on June 26, 2004 01:09 AM

Hi Mario, Ive been reading whole post list and you are the only who mentions a probably autoflip solution. Please, can you help me figure it out? I ve been trying but its super confusing and i have little time left.
Thnaks a lot

Posted by: claudia on June 26, 2004 03:41 PM

Great script, but a problem I have is using the text tool on each page causes it to become VERY VERY sluggish and basically unusable. Is there any way I can fix this besides making each page an image?

Posted by: Azheal on June 28, 2004 09:07 AM

Hey!
I just used the dynamic version of the pageflip,
here is the result: http://www.orientaldance.no

I will now try to make the index page work to with the gotoPage() function, and then maybe see if it works to have an imported video to flash somewhere :)

Posted by: Anders Eriksen on June 28, 2004 10:28 AM

this was the problem that i occured

"I also have the same problems with Chris, I have 6 buttons on my flash site when click on the flip book, the flipbook will load on the first level then i click on another button the flipbook will unload and reload another swf then if I click again on the flipbook, the flipbook would not work, i'll have too like click the flipper 3 to 4 times before it will flip, dunno what's wrong? Help?"

and marc told me to removed the mouse listener in which i did?

stop();

(Mouse.addListener(mousecontroll);) - deleted script
onEnterFrame = oef;
resetPages();
reset();

but the problem is the book will not function anymore =(

helped

Posted by: leo on June 28, 2004 12:16 PM

I would like to add a little animation to the side of the pages, I have been playing around with it and I just can't seem to make it work. I would like the animation to start as soon as someone lets go of the page that they are flipping. Then go away again when they flip and release the next page. Can any one guide me or give me some tips on how to make this work? Thank you in advance!!!!

Hats off to you Macc! This is a completely amazing piece of work! Thank you so very much for sharing your hard work.

Posted by: amanda on June 28, 2004 08:28 PM

Elgallo,
Thanks for your info on the preloader. However it does not seem to work for the dynamic version which I have used and which can be viewed on the following link :
http://www.cibusintl.com/CANS/index.html
It just takes too long to preload for a pratical online use. The problem is that even for a CDrom use it still takes the same time to preload.

If anyone has found a solution around the preloading issue on the dynamic version I'd be glad to hear from you.

Posted by: smalco on June 29, 2004 07:31 AM

Hi,


here is what i have done so far....

http://202.172.220.208/demo/Wangz/pageflip_wTabs.html

what i'm trying to get is....

when i clip on any of the tabs, i want the respective page to be displayed(or maybe have only 1 page flip animation) immediately instead of turning to every single page...i really have to get it work asap...reaching dateline soon in 2 days ;(

somebody pls give me an idea(which function should i change) to get it work.

Thanks!

macko

Posted by: macko on June 29, 2004 12:15 PM

It's so smooth...
Awesome!

Posted by: Anders Dahl on July 2, 2004 07:42 PM

I'm having the same problem that chris and leo posted about (usining pageflip inside another movie, won't reload correctly) and also, I'm using the toggle feature to turn the page quality down and improve performance, but once it's loaded into another swf it is working backwards. See it her http://www.knownothingfamily.org/ideas/redoitfla8.swf

Posted by: Eric Cash on July 3, 2004 02:41 AM

Could someone can HELP me out:
1. my problem of button's inside external swf files (enlarge photo), those buttons why working on next page too?

2. I would like to know how to add a blank box with "go" button, so just type a number to go and

3. an animation & codes without flipping other pages.

Posted by: gatta on July 4, 2004 03:15 AM

hi

i wondered if it was possible to include half size pages that flip from the outside in

dunno if you understand what im sayin...

i mean that you open the book from right to left .. then there is a half page that you open from left to right.

hope you got what i m talking bout..
if not i will make a pic ..

thx
nicolai

Posted by: nicolai on July 4, 2004 02:57 PM

hi folks,

great work - im really impressed!

but theres one big problem for me - external .swf files...

i dont want to preload 2mb, so i made dynamic pages.

example = on page 1 i placed a movie named "mc1" and want a dynamik load into page 1 with
>> loadMovie("content1.swf", "mc1");
the problem - everytime when i flip the page - it is reloading...and shows a white "mc1".

can anyone help me...it would be great!

thanks
chris

Posted by: chris on July 5, 2004 01:02 PM

Has anyone successfully got a clip to stop once it has been flipped away from? The clips in the background get loaded again so they start playing. I know people have been inquiring about this. Has one of you found a solution. I have been trying for a while now and seem to find no success.

Thanks!!

Posted by: Will on July 7, 2004 03:58 AM

i got it.

I just applied a global variable at the end of the movieclip when it attempts to play it will check this first.

Posted by: Will on July 7, 2004 05:11 AM

Still haven't fixed my problem, but the site is live anyway, check it out http://www.ericcash.com

Posted by: Eric Cash on July 7, 2004 11:33 AM

EXCELLENT. What a genius you are!

Posted by: Imagica on July 8, 2004 12:07 AM

Great flash.. but um... maybe I'm just dense. How do I see the content of the pages? I'm looking at the source in Flash, but can't find the page content!

Posted by: Adrian on July 9, 2004 11:47 PM

anyone got any idea what actions to put on a button to flip to a specific page! the ones posted already don't seem to work for me.... any ideas appreciated!

Posted by: Chris on July 13, 2004 01:41 PM

Great piece of flash work, it seems to be dominating the search engines. But, I'm having trouble trying to go to a specific page without visiting all the intermediate pages? It can get very tiresome watching 100 pages flick by.

I'm workin on a possible solution now, but if someone else out there knows the answer already, it'll save me (and others I'm sure) a good amount of time.

Posted by: GoMo on July 14, 2004 04:04 PM

Ignore my previous post, I figured it out. It was a lot simpler than I first thought.

Posted by: GoMo on July 14, 2004 06:57 PM

Has anyone figured out the tabs, and being able to be on page 3 and see the edge of page 20 . Any clues would be helpful. Any news on the skipping multiple pages? Thanks
Sweet work Macc!

Posted by: JT on July 14, 2004 11:54 PM

Amazing work.

I noticed a lot of people have asked about this, but I couldn't find a solution. How can you stop externally loaded swfs from reloading each time the mouse cursor is placed over the page corners?

Any help is appreciated...

Posted by: Joe on July 15, 2004 05:26 AM

Estoy realmente muy agradecido por cedernos el cdigo fuente de una aplicacin con tan fuerte efecto.

Thanks a lot!

Posted by: naisui on July 15, 2004 09:27 PM

***macc***, You the man dude!! I love you work... its gonna save my ass. I have just downloaded & and read trough all the posts. Now, i just need to start working on it. The only problem which seems too keep repeating and has not been cleared is the Tab function. Is it possible?

Posted by: samyakuza on July 16, 2004 11:35 AM

This book is very beautiful !!! Magic !!!

I have a problem :
How can I add more pages ? I have no idea .

Posted by: Brian on July 16, 2004 03:49 PM

Hi GoMo,
Would you like to share your solution of skipping pages flipping?

Posted by: gatta on July 17, 2004 01:24 AM

When I unzip the pageflip_v2_source.zip file and try to open it in Flash 5, it gives an error "Unexpected File Format".

Does anyone have the Flash 5 version for the source? Would you please kindly upload it for me? Your help is greatly appreciated!

Posted by: Priscilla on July 18, 2004 09:44 AM

You cannot do this technique in Flash 5, because it does not support the Drawing API which is needed to create dynamic masks. There are pageflips for Flash 5, but they work with keyframes which will not be as flexible and smooth.

But do you really think there is any reason to still use Flash 5 today?

Posted by: Mario Klingemann on July 18, 2004 11:53 AM

Hello,

I love this animation and I am working on making a book with 109 pages. Then I found a problem :

I modified this line begining by :
"pageOrder = new Array("page0","page1","page2"...

and this line is finishing on the 101th page, then it start a second line with "page102", 103, etc to 109.

The fact that this line is made with 2 lines makes the anim to stop to the 101th page and I dont know how to make it able to go to 109th one. Can you help me with this stupid lil thing ? :)

Thanks much and thanks for this great work !

Posted by: Ludovic Scholl on July 19, 2004 12:04 PM

hi, has anyone figure out how to get the preloader to work? i've been on it for days but still no luck
Thanks

Posted by: gazal on July 21, 2004 03:47 AM

Wow, thank you so much, stunning work and just what I needed!

Posted by: Antoine on July 21, 2004 05:31 PM

I am having problems with dynamic text on pages. The text reloads every time the page flips and therefore loses the effect of being in a book. Has anyone had the same problem with dynamic text???

Cheers

Posted by: lawrence on July 22, 2004 05:52 AM

Hello,

I have joined this a bit late in the day but would it be ok if someone could offer me some help.

Like most people have said and requested they want to be able to resize the pages :)

Has anyone figured out a pain free way of doing this with out upsetting the rest of the code??

I think this is one of the most advanced things I have seen with flash and is a real show stopper.

Please help I would love be able to understand even a 10th of this script.

any help warmly excepted :)

thanks cornhulio

Posted by: cornhulio on July 24, 2004 02:12 AM

Hola! Excelente trabajo.

Alguien puede ayudarme a borrar de memoria las fotos al hacerles un _visible=false?

No quiero que se queden en cache, prefiero cargarlas en el momento, se puede?

Posted by: Claudia on July 24, 2004 03:31 AM

Hi everyone,
I truly hope someone can help me. I'm using the first version of the page flip. The page flip is exellent I absolutly love it. However, in IE when you click the first page, for the first time it flickers. In other words the page disappears for a split second and then comes back. When you turn the first page back over and click again it doesn't happen. This problem does not occur in Netscape! I tried the demo that Macc has up on his site and it does it to. If Macc, or anyone else can help I'd be ever greatful . This problem is drivng me crazy. Thank you soooooo much in advanced.

Posted by: Manda on July 27, 2004 04:46 AM

Turn Off page turn effect:

I've found that the page turn effect is very choppy with slower processors. I want to set it up so there is a toggle button to turn the effect on/off.

When the effect is turned off I need the gotoPage() fuction to work so people can still navigate through the book (there would just be no page turning effect). Does anyone know if this is possible. If so how?

Thanks!!!

Posted by: Glaze on July 29, 2004 02:23 AM

Hi there!

Im truly blessed by this wonderfull script, due to the fact im not an actionscripter, can u tell me where i can add some rustling sound to the script, when the page turns ... on release, or something like that?! would be very helpfull if u can help me, because i have a presentation tomorrow!!!!
thx again for this beuatifull script!!! many nice greetz, Marx;O))

Posted by: Marx on July 29, 2004 08:06 AM

I still havent figured out how to solve resizing.
Can anybody help?
Thx
helios

Posted by: helios on August 27, 2004 11:24 AM

Love the look of page flip, and have been searching for one - but I'm a flash virgin and now that I've downloaded the files.... how do I *use* them? I haven't the first idea how to even get my pictures onto the pages. LOL

Posted by: Shez on August 28, 2004 01:38 PM

For all those people looking for the answer to skipping straight to a page without visiting all the pages in between, check out the following link for the solution:

http://dev.funkd.net/pageflip/

Posted by: GoMo on September 1, 2004 11:57 AM

Awesome work...
And yet again someone asking about dynamic loading of external images / swf files etc...

I'm working on a version of the pageflip, and whilst the various elements only weigh about 15k, I have high quality images which bump the movie up to nearly 200k! Too big.

So... Did anyone ever come up with a solution to this problem - as the script continously uses AttachMovie, how do you make the current pages load external items (ie with a loading bar etc) when needed?

My thinking on this is another array in the root which keeps track of which images should be loaded with which pages... Then using _root.page (the current left page), a _root function to then load in the elements necessary. But as _root.page is part of the oef() function it occurs on enterframe, so calling items at the right time is a bit of a nightmare...

did anyone get round this in the end?

Posted by: Mat J on September 1, 2004 05:29 PM

Oh yeah - by the way I'm using the version currently at:

http://www.iparigrafika.hu/pageflip/

Posted by: Mat J on September 1, 2004 05:34 PM

ok so I'm stupid, and my externally loading stuff flickers just like everyone else's - and forgive me for using this forum as a journal, but...

Is there ANY way round using attachMovie in this?

Posted by: Mat J on September 1, 2004 06:45 PM

Ozzy had a suggestion about the first click error where it flashes the page underneath improperly. His suggestion didn't work for me because it required an initial dead click. The fix I found is similar, but still allowing the first click to work. Add the following lines to the hittest() function directly before you check for forward or backward flipping:

if(!firstFlipDone) {
firstFlipDone = true;
return 1;
}

Simon

Posted by: Simon King on September 2, 2004 03:45 AM

Hello,

I have been reading the post intensively and with great interest.

There is though a topic that does not seem to have been covered. How to make a reference to a certain movieclip.

E.g. I have a button and if I make a "on(release)"
and wish to make another clip react on this function (e.g. gotoAndPlay) I cannot get the reference right.

I have tried with _root.movieclip.gotoandplay(2)
and e.g. _root.page6.gotoandplay(2)


What is the right path?????????????????

Please help


Posted by: Jens Riis on September 3, 2004 12:11 AM

Hello,

I have been reading the post intensively and with great interest.

There is though a topic that does not seem to have been covered. How to make a reference to a certain movieclip.

E.g. I have a button and if I make a "on(release)"
and wish to make another clip react on this function (e.g. gotoAndPlay) I cannot get the reference right.

I have tried with _root.movieclip.gotoandplay(2)
and e.g. _root.page6.gotoandplay(2)


What is the right path?????????????????

Please help


Posted by: Jens Riis on September 3, 2004 12:53 AM

still any ideas on the flicker issue? i also saw somewhere that there was a dynamic version....where could i get that?

btw, awesome code. well documented.

Posted by: richard on September 5, 2004 03:34 AM

hey,

This script is a life saver! I have a bit of a problem that I can't find an answer for. (Must warn you i'm more a graphics person than actionscript!)

How do I get an animation to play only when a page is being viewed? For example if i wanted a fly to buzz over a page only when the page can be seen?

Any help would be greatly appreciated! I think the answer lies, from what i can read on your postings, in movie referencing?

Thanks in advance!

Paul

Posted by: Paul on September 6, 2004 01:02 AM

I have a big problem.

I have tryed to ad a next and prev. page buttom ... with any results.
I also want to have one function that you press your left key on your keyboard and you go to previous page.

How?

Posted by: Alex on September 7, 2004 02:06 PM

Hi

I have a ADM 1200/512 and ist lagging as hell when page turning?

Is there a System Requirements for the pageflip to run soft?

Posted by: RAlph on September 10, 2004 08:59 AM

Hi.

I've been viewing the flash over and over again, and it looks very nice.

I'm not a flash guru... a newbie maybe. I've been cheking out the action code (nomally i've no problem in editing parameters in codes) but how can I change the pictures? Don't laugh but i've no idea.

Please help me ;-)

Posted by: Claus on September 10, 2004 02:07 PM

Hey MACC, it's just an amazing job!
Very Real animation.

I'm having problems only when I try to load some external movies like videos / swfs / audio. and everytime that the page flips I'll try to make these external movies fade out.
The problem is when I load the external Movie everytime that I go with the mouse over on the hit area to flip the page, it RESET the page and the movie loaded start over.
Do you know how can the External loadmovies play with no problem even when you click to flip to the next page?

Posted by: Bialo on September 12, 2004 11:27 PM

Hi Everyone,

I have been trying find someone who is interested in modifying the page_flip script. I am a web designer in Australia but have very little knowledge of ActionScript. Basically a client of mine wants to use the page_flip but we need it rotated and the page size needs to be larger (Height x 600 & Width x 800).
The client sells calendars and wants to display them online.

This would obviously be a paid job, so if you are interested please contact me [colin at altstudio dot com dot au]. Thanks for your time and I look forward to hearing from someone.

Colin

Posted by: Colin Burns on September 15, 2004 02:20 PM

Hi Alex, here is the code for navigating to next and previous pages:

Code to move to NEXT page either by clicking the button or by clicking the RIGHT ARROW key:
-----------------------------------------------------
on (release) {
gotoPage(page+2);
}
on(keyPress ""){
gotoPage(page+2);
}
-----------------------------------------------------
Code to move to PREVIOUS page either by clicking the button or by clicking the LEFT ARROW key:
-----------------------------------------------------
on (release) {
gotoPage(page-2);
}
on(keyPress ""){
if(page==2){
gotoPage(page-1);
} else {
gotoPage(page-2);
}
}
-----------------------------------------------------

Hope this helps.

Posted by: sajid on September 16, 2004 03:37 PM

Somehow the code i posted was not posted correctly. Maybe because it had HTML tags.

For the NEXT page actionscript, the on(KeyPress) code should have Right written between the blank "".

Similarly for Previous page code, it should be Left written inside "".

Posted by: sajid on September 16, 2004 03:41 PM

Somehow the code i posted was not posted correctly. Maybe because it had HTML tags.

For the NEXT page actionscript, the on(KeyPress) code should have Right written between inside the blank "".

Similarly for Previous page code, it should be Left written between inside "".

Posted by: sajid on September 16, 2004 03:42 PM

again its not showing so i an trying the ACSII codes :)

Ok it should have been:

on(keyPress "<Right>"){

on(keyPress "<Left>"){

Posted by: sajid on September 16, 2004 03:46 PM

Great job!
Looks great, easy adjustable!
Finally something I might use for a school journal.
I'll keep you posted.

Best Regards,

Willem from Belgium

Posted by: Willem on September 16, 2004 04:55 PM

Hello,

I have been reading the post intensively and with great interest.

There is though a topic that does not seem to have been covered. How to make a reference to a certain movieclip.

E.g. I have a button and if I make a "on(release)"
and wish to make another clip react on this function (e.g. gotoAndPlay) I cannot get the reference right.

I have tried with _root.movieclip.gotoandplay(2)
and e.g. _root.page6.gotoandplay(2)


What is the right path?????????????????


Please help

Posted by: Riis on September 16, 2004 11:58 PM

Thanks Macc!

Great piece of work! Love it.. :D

However, when I tried to load the .swf file inside a new fla file, using

loadMovie("pageflip_v2.swf", "load_position");
stop();

The page flip function works fine at the first time.. but when I tried to go back and do it again, the page flip stop working.

Is there anything that I should have done?

Please help me guys..

Jeff

Posted by: Jeff M on September 17, 2004 03:58 AM

This has been asked a few times above... but with no answer. For those of us new to actionscript; how do I replace the current pictures with my own pictures? I have all of my pages designed and ready to go, but have no idea how to implement them with pageflip v2.

Any help would be very much appreciated. Thanks

Posted by: Nate on September 18, 2004 07:42 AM

thank you very match ! :-)

Posted by: fouad on September 19, 2004 02:55 AM

With V2 is there any way to make pages flip faster so that motion is not jerky with the sloer processors ? In the systemminds brochure the transition seems much faster and works well with even slower computers.. Anybody with good suggestions ?

Posted by: Suzane on September 22, 2004 02:00 PM

Hi guys. I still dont get it!
I tried al the resizing methods, but nothing seems to work. Can anyone please help me. Or send me a example...where the sizes are bigger!
thanks

Posted by: Nonio on September 22, 2004 03:17 PM

Hello.
I am also trying to use this sourcecode in a larger document and I have had NO luck. I want to make my document 900x600 or larger. I'd appreciate any advice.

Posted by: Adam on September 25, 2004 03:25 AM

Great ! I used this code.
You can see http://www.suleymansonmez.com
Thank you my friend.
Suleyman

Posted by: ssonmez on September 26, 2004 09:13 PM

Hi.
Can someone tell me how to remove pages?
I only need 12 pages and need to delete a few but everytime I play with the code, I get an error message? I feel like it's really easy and Im just over analyzing it.

Can anyone help?
Thank you in advance! :)

Posted by: myselfandme on September 26, 2004 09:33 PM

For all of you asking how to add/remove pages, or resize the document, you may want to first actually LOOK at the actionscript. All of the actions are commented there, for example "maxpage=16;". Can anyone guess what this may control?

Posted by: Jeffery on September 28, 2004 09:05 PM

I have the same problem as Riis described few posts ago:

"When I tried to load the .swf file inside a new fla file, using
loadMovie("pageflip_v2.swf", "load_position");
stop();
The page flip function works fine at the first time.. but when I tried to go back and do it again, the page flip stop working."

The main problem is that the "drag" function is not working anymore.

Sometimes when I try to drag the page, the dubugger returns "donothing". I found this in the source:
"else if((flipoff || aflip || !canflip) && !preflip) {
trace("donothing");"

I'll appreciate any kind of help...

Posted by: Bogdan on September 29, 2004 12:03 AM

Sorry, Jeff M was the one with the same problem.

Posted by: Bogdan on September 29, 2004 12:09 AM

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Macc rulz!

Mouse.removeListener(mousecontroll);

Easy,ha? Wasn't that easy without Maccs help!
Thanks!

Posted by: Bogdan on October 1, 2004 01:03 PM

Hi,

Anyone has a preloader for 2nd version (link external swf files), I tried to do it but not work... please help. Thanks a lot!!!

Posted by: Gatta on October 1, 2004 03:14 PM

Sajid
I used your next script on the button. I noticed it really only works when you place it in the page clips not in the main timeline. but it works, thanks. I included the _root. to the code to help.

But I wanted to use the keypress and it doesn't work. I noticed that on page 7 in the original script it also has a keypress, but it doesn't work. Is there something I'm missing? I put it in the frame inside the movie cilp.

I really appreciate your help.

Posted by: jonathan on October 1, 2004 03:45 PM

I found a site with great preloader and content, anyone know to do the preloader for loading each pages?

Take a look:

http://www.rossoalice.it/alice/notizie.html

then click on the rigth top named "Red alice magazine"

Posted by: Gatta on October 1, 2004 04:35 PM

Is there any way to have the pages load images externally? Like have the images loadMovie("image.jpg");

I have tried this and every time click on the page the page flickers. Every page does this. Is there any way to stop the page from flickering? thanks so much

Posted by: junaid on October 7, 2004 01:03 PM

Hi there!

I made my page bigger 475 x 648 but the mask when I turn the page got a problem.

How can I fix it?

Thanks

Fabio

Posted by: Fabio Garcia on October 10, 2004 07:49 AM

I put a movie clip on the page 5 with the stop action on the first frame.

How can I put my m c to play only when I open this page?

Thanks in advance

Posted by: Fabio Garcia on October 11, 2004 01:17 AM

Hi everyone, this is the best effect I ever seen. I have a problem that I make a children storybook and I used this effect but what my problem is that when I load the movie at the first time it plays and flips well but when I go to another page and come page to the flip page it stops working and it is not turnning if any one knows how to do please help.

Posted by: masooda on October 11, 2004 09:10 AM

Hi there......
very very very nice job......
i'm also looking to made a book but in a horizontal format... does anyone can help me please...

Posted by: Marcello on October 11, 2004 01:03 PM

hello,

a great idea! I tried to open the fla in Flash 5, but it doesn't open. Is the fla programmed with Flash MX?

Many greetings

Ute

Posted by: Ute on October 13, 2004 01:19 PM

I can not get this to work. Loading it into a MC then having another swf loaded. I tried to remove the listener not luck. Le me know if it gets fixed.

Posted by: Todd Vanderlin on October 13, 2004 07:37 PM

hi there...

can someone tell me of to fix the problem with the page number 11.. i can tear the page up....
thankx

Posted by: toutanne on October 13, 2004 11:25 PM

I know the question has been asked a million times before, I'm sorry but here's the millionth and one...How do I add buttons in order to flip to a next page or a specific page.

In regards to Sajid post I don't understand what you mean about the page clips.

I still have a problem with the first page, first click flicker. I tryed simon's advice but now the first page doesn't even flip it just appears turned. You don't see it acually turn...Thanks

Posted by: manda on October 16, 2004 01:26 AM

I messed up when i was adding buttons and such and cant seem to figure out how they suppose to be scripted. Like say if you have buttons on page 3 and if you are on cover of the book you can still click them. Anyone know whats happening?

Posted by: Yura on October 19, 2004 12:10 AM

I messed up when i was adding buttons and such and cant seem to figure out how they suppose to be scripted. Like say if you have buttons on page 3 and if you are on cover of the book you can still click them. Anyone know whats happening?

Posted by: Yura on October 19, 2004 12:45 AM

Re. "warptopage" function posted above by GoMo:

- could this be done into a drop down box where you have a certain number of pages to select from [like 1-2... 255-256] and go straight to that page w/o flipping?

-------------------------------------------------------

http://dev.funkd.net/pageflip/

Posted by: GoMo on September 1, 2004 11:57 AM

Posted by: AG on October 22, 2004 08:37 PM

HI MAAC!!!
VERY VERY NICE JOB MAN!
but.....uh uh ....i have a little problem....:

i have many movie clip, in a single page or double...the pages are movie clip...
when i go in roll over or click to turn pages, the movie clip reset, and restart again fron frame 1...i would like thats movie clip not reset and when i turn or roll over " afa " not reset but continue to play....

PLEASE HELP MEEEEE!! ihihihihh

p.s. sorry for my bad english but i'm italian guy...and i learn english language.

THANX a lot

die

Posted by: diego vallarin on October 23, 2004 10:26 AM

Hello,

I absolute beginner in flash and i would like to known how i can create my pages with the script downloaded.

When i open the file i can't do it work, because i down know, how to put script. Is anyone can help me and describe for a beginner how do it with exemples.

I read all the posts and it seems to me that all the persons here are advanced in flash. For a long time i'm looking for this kind of animation without find it, and now i'm got it, it's good but i need your help.

Thanks a lot
Excuse me if a made some mistakes i'm french mother tongue and my english isn't perfect.

Suzie

Posted by: Suzie on October 25, 2004 11:56 AM

Yes...I'm having trouble finding where the images that are used for the pages are being stored/altered...I would like to add different images to the pages, but I'm new and can't find where to change them...I'm using Flash MX...

any help would be appreciated...

Posted by: LordWilson on October 26, 2004 12:31 AM

Awesome, just saw an example of it at dynamicfactory.com. I have tried everyting with text, and the only one that seems to work fine for me, is the "static text" field.

If anyone has an example of external txt file used, I would greatly appreciated.

Credit will always go to you for this great design.

Posted by: Kenan on October 26, 2004 04:05 PM

Hi all,
I'm trying to createa a page in which i need to load the pages dynamic. I've seen the link to the dynamic source but when i click it, the source seems to be gone. Does anybody have the source or could anybody tell me the link to this source..

Thnx in advance,
Also to Macc for the great code, I only need about 3 years to figure it all out :P

Michel

Posted by: Hellbender on October 26, 2004 05:32 PM

you have take www.e-netmarket.com- Dominion Press ltd idea on flip brochure. They have this product copyrighted, how can you claim this is your copyright??

Posted by: sarah on October 27, 2004 09:47 PM

www.e-netmarket.com- Dominion Press ltd idea on flip brochure. They have this product copyrighted, how can be your copyright too?

Dominion press ltd in uk
www.e-netmarket.com

www.intstudy.com

www.studyoverseas..com
44 0208 861 0500

Posted by: sarah on October 27, 2004 11:12 PM

Does anyone know how I can add a sound to the pageflip? I see that someone else asked, but no response online.

Great Script Macc- appreciate your hard work!

Posted by: gena on October 28, 2004 06:50 AM

Sarah, FYI, "ideas" are not copyrightable! Unless Macc had direct access to this company's code... you have no case here! BTW, I tried to access this site/magazines online... sorry, but they don't seem to work properly.

Posted by: AG on October 30, 2004 06:45 AM

Hi have the same problem of this:

i have many movie clip, in a single page or double...the pages are movie clip...
when i go in roll over or click to turn pages, the movie clip reset, and restart again fron frame 1...i would like thats movie clip not reset and when i turn or roll over " afa " not reset but continue to play....

PLEASE HELP MEEEEE!! ihihihihh

p.s. sorry for my bad english but i'm italian guy...and i learn english language.

And my English is not so good also... ;)

Does someone figure-out how to fix it?

Thanks in advance

Posted by: Fabio Garcia on October 31, 2004 09:58 AM

Hi! Great code.

I'm only a rookie, so this is way to hard for me to understand. Could anyone help me? I want the magazine to flip every page in the same way: just like page number three in your animation, and I want the pages content to be loaded externally. No more fancy stuff.

I'm gonna need somebody to rewrite the code for me, cause I'm no good at this. Can u help me? please reply!

:-) frode

Posted by: frode on November 1, 2004 03:41 PM

I find the flip page code can only be read in flash player 6 or lower. not the new player 7, and I try to load css file into the pages...it just cannot work lo.......

if it can work...it will be perfect~~~

Posted by: pocket on November 4, 2004 04:53 AM

Sarah,

I can only repeat AG's point: you cannot have a copyright on an idea. And on top of that - if anyone would have a "copyright" on the smooth pageturn mechanism it's either Eric Natzke or me - publicly there was no such thing around before the HP site or my first demo (of course I'm not talking about keyframed pageturn engines here)

Posted by: Mario Klingemann on November 5, 2004 11:12 AM

Where is the link for the updated dynamic verison 2 page flip? I have looked all over http://www.iparigrafika.hu/ this site and have not found a dynamic verison of the page flip. Thanks!

Posted by: evision on November 6, 2004 06:01 PM

Hi!

An updated version of the pageFlip is uploaded at http://www.iparigrafika.hu/pageflip (v2.1)

There is no free dynamic pageFlip... sorry

Posted by: Macc on November 6, 2004 06:12 PM

Oh ok thanks. Where would I go to purchase the dynamic page flip? I would be more than willing to pay for it. Thanks again.

Posted by: evision on November 6, 2004 11:29 PM

1st of all THANK YOU!

This script is just fantastic. I am very impressed with it, thanks Macc.

I have a question which I hope someone will be able to help me with. I have a series of buttons which fall beneath the pages movie so that when the either the front or back covers are opened the covers then hide the buttons.

How and where in the code would I disable my other buttons so that they are not active as soon as the covers start to turn over.

How would I make it so that my other buttons are active only when the covers are closed?

I have tried to put the actions in the individual pages but this does not seem to work. I am thinking that it would be more effective to put the actions that do this in the script in frame 1 of the movie. Thanks for your help and this wonderful script.

Posted by: Steve on November 7, 2004 05:32 PM

Hi Macc!

Can you tell us what is the new features in this new version, or wich bugs were fixed?

Thanks in advance,

Fbio

Posted by: Fabio Garcia on November 7, 2004 06:35 PM

I have added a preloader, and now you can skip pages if you want when flipping with gotoPage().

Posted by: Macc on November 7, 2004 08:21 PM

Thank you Macc!

It's possible to a movie clip, into a page, play automatically only when we open the page and make it to not play again? Because every time the mc is resetting it self.

Thanks,

Fbio

Posted by: Fabio Garcia on November 8, 2004 01:39 AM

i have the same problem that Fabio has, the one that refers with movie clips that reset when the mouse is over the corner of the page. I put an stop to alll my movieclips, but it doesn't seem to work either, PLEASE HELP!!!!!. A bunch of peolple have asked for it but no one seems to have the solution

Posted by: alvaro on November 8, 2004 08:48 PM

i have the same problem that alvaro, fabio, martjin a nd many others. THE PROBLEM WITH THE RESETING MOVIE CLIPS!!!!!!, please help us
thanks a lot

Posted by: soledad on November 8, 2004 08:50 PM

yeah!, i need the answer to those problems too! please someone give us the solution to the reseting movie clips

Posted by: erwin on November 8, 2004 08:51 PM

I see you said Macc that there is no free version of the dynamic pageflip. Does that mean that I can purchase it? If so I would love a link. Thanks for the help.

Posted by: evision on November 8, 2004 09:58 PM

hi!
id like to include a set of buttons that would directly display the pages i wish. how do i link a button to a particular page? i tried changing somethings on the code but it doesn't work! please help!

Posted by: haezel on November 9, 2004 04:15 AM

Hi Haesel

Take the last version - the 2.1 and your problem will be solved.

Posted by: Fabio Garcia on November 9, 2004 05:19 AM

Hi Macc,

I'd like to have larger pages:

example:
frame3 / actions
pw=475;
ph=648;

But I got problems with shadows when I turn pages from the lower corner.

How can I fix it?

Thanks in advance,

Fbio Garcia

Posted by: Fabio Garcia on November 9, 2004 05:27 AM

Hi ...

As a lot of people here id like to know if there is any way to load jpg`s into the book dynamicly ... id be glad if someone could answer that :)

thanks in advance

Posted by: readme.txt on November 9, 2004 11:14 AM

First things first. Macc, thank you for coding your playflip and sharing it with everyone. Its Great!

Im responding to chris, leo, Fabio and all those who were having troubles with executing the pageflip swf file from within a parent swf file. I found a solution but Im not sure its the proper solution. Read on.

When I tried to execute the pageflip swf from within a parent swf the pageflip would work only the first time. If you tried to execute the pageflip more than once it would no longer work. I found out that the Mouse.addListener(mousecontroll) statement on frame 2s actionscript would be called every time the pageflip program is launched from the parent swf. Hence the mousecontroll.onMouseDown function would execute once for every launched occurrence of pageflip. This is bad since the flip logic only wants one click event. Multiple click events causes the page flipping not to work.

What I did was to add a variable to the parent swf to count the number of times the pageflip swf was called and only excute the addListener statement once based on this parent variable. I called the variable MouseListenerCount.

Code in parent swf file:

MouseListenerCount = 0;


Code in pageflip swf file, 2nd frame, replaced the addListener statement.

if (_parent._level0.MouseListenerCount == 0)
{
Mouse.addListener(mousecontroll);
_parent._level0.MouseListenerCount = 1;
}

Now this worked for me but I wish there was a simple way to check to see if the Mouse Listener object already exists. If I could do that then I would not need the external count variable. But anyways, the above solution works. If anyone has a better idea I would love to hear it.

Thanks again Macc! You rock!

JimVision

Posted by: JimVision on November 9, 2004 09:54 PM

can someone please help me with loading external jpg's.

Posted by: dorke on November 10, 2004 06:20 PM

Hi !!

Can any body help me in making this animation into auto flip one.
I need auto flip as the movie loads. Only for the first page.
please help asap.

aMiT

Posted by: amit on November 10, 2004 08:15 PM

I would also like to find out how to load the images into the pages dynamically. Anyone? Anyone? :)

Posted by: Loren Scott on November 11, 2004 10:56 PM

Hi JimVision

I tried your code and didn't work. Could you explain clear, please. Or someone who got it, could tell me how this code works.

Thanks in advance,

Fbio

Posted by: Fabio Garcia on November 12, 2004 04:53 AM

for the preloader... shall i put it in the scene before the actual pageflip scene?

can someone help me out?
i can't seem to figure it out...

Posted by: usernyc on November 12, 2004 04:40 PM

Just put my interpretation of the book up to showcase some of my photography work at http://www.smalltime.co.uk/
It's quite a load, so be prepared for a small wait.
Linked you up on the back cover Macc. Cheers!

Posted by: Jim on November 15, 2004 04:04 AM

This is really amazing work.

All I need to now... how do I add more pages??? I tried adjusting the code, with very limited success.

Please HELP?

Thanks :)

Posted by: Charl on November 15, 2004 01:47 PM

elgallo,

to name the instances of the pages that we dragged onto the stage, is it just a matter of naming page1 as "page1" on the stage?

It still doesn't seem to work? :(

Posted by: radiobust on November 16, 2004 04:39 AM

www.e-netmarket.com- Dominion Press ltd idea on flip brochure. They have this product copyrighted, how can be your copyright too?

Dominion press ltd in uk
www.e-netmarket.com

www.intstudy.com

www.studyoverseas..com
44 0208 861 0500

Posted by: sarah on November 16, 2004 12:56 PM

Dear "sarah", as you do not seem to read any of the replies here I guess that all you want to do with your post is to get free advertisement for those domains. For the moment I will not delete you posts.

To repeat it: there is NO such thing as a copyright on ideas.

Posted by: Mario Klingemann on November 16, 2004 01:03 PM

Yes, absolutly the final word! Its an amazing masterpiece of flash work.

Posted by: knoude on November 16, 2004 03:00 PM

re: 'sarah' - your site has only used flash pageturns for 2 months. Could it be that you've used macc's code and then come here and blatantly rubbished his work for your own commercial gain?? your posts are spam and should be deleted

Posted by: Jonjo on November 17, 2004 12:30 AM

VERY nice! I've been looking for help on how to make even a basic version of the page turn effect and this by far is more then I expected to see.

It is quite nearly perfect, I only see one small little "mistake" - if you will....

The page that has the star cutout on it - the shadow it produces is square just like the rest when it probably should be the inverse of the hidden portion of that page.

Posted by: Bootchmonkey on November 18, 2004 02:56 PM

Great code - need some help though!

Based on your code, I created a catalog, but I am able to click on links through pages (links on underneath pages). What can I do to prevent this?

Please help!!

Your code is terrific and very easy to modify and follow. Well commented, too.

Posted by: Mark on November 18, 2004 06:01 PM

Oooooooooo That's Impressive

Posted by: Hakan Silver on November 20, 2004 02:10 AM

Hi there!

Who could help me with these codes:

Code in parent swf file:


MouseListenerCount = 0;

Code in pageflip swf file, 2nd frame, replaced the addListener statement.


if (_parent._level0.MouseListenerCount == 0)
{
Mouse.addListener(mousecontroll);
_parent._level0.MouseListenerCount = 1;
}


It's not working... ;(

Thanks in advance,

Fbio Garcia

Posted by: Fabio Garcia on November 21, 2004 03:18 AM

Help! I am an idiot. I have downloaded the pageflip_v2.fla file. I open it in Flash MX and I can not find any source to edit. I see the action line and the pages line, when I click on them there is nothing I can see that I can edit???? I'm very sorry to ask but I really want to try making a photo album, where do I go to edit the source to change it to my photos? Please give me just the basic step to get there.

Posted by: David on November 22, 2004 10:12 PM

Does anybody know what might need to be done to the code to make it work with Player 7?

Thanks
Mathias

Posted by: Mathias on November 23, 2004 02:35 PM

Once again, excellent work.
See mine at

http://www.duilliathdesigns.com/family/indiana/indianapics.php the flash-book is a pop-up, click on the images at bottom to get to it.

Am still trying to figure out how to use external jpgs. There seems to be a loading issue, but haven't played with script for a while or tried new version.

Great work.

Mary

Posted by: Mary on November 23, 2004 11:09 PM

I've been workign with this bit of code for a few days now and have come up against some niggling bugs and/or deficiencies.

For instance, you can't have a hard-cover version that looks like a real book (i.e. with the cover slighly bigger than the inner pages). Because the way the setPages function works, it keeps hiding the front and back covers/inside covers where you would see the hardback.

It also needs code to test if a page (from the library) is already attached to prevent any embedded animations from restarting.

Most annoyingly though, if you publish the movie as "transparent windowless" you get a distinct "flicker" when pages are attached via setPages. Could be a player issues... any clues anyone?


I'm already making improvements to this otherwise SUPERB bit of code, such as self-centering on stage dependent on whether the book is open or closed etc. I'll send my version back to the author when it's ready:)

Keep flippin' !!!!
Missy

Posted by: Missy on November 24, 2004 11:08 AM

Hi Missy!

Could you please send me your fixed version done until now.

Because I'd like to use some animations into the page in a website I'm working today.

Thanks in advance,

Fbio Garcia
fabiogarcia@maclink.com.br

Posted by: Fabio Garcia on November 25, 2004 03:06 AM

Nice work! Big respect to da' man. Thanks for sharing this.

Posted by: Cosmin on November 26, 2004 11:41 AM

a lot a blabla questions but why are there no answers on this primitive page. total chaos. who needs this. can't find any answers here.!!

Posted by: joop on November 28, 2004 05:26 PM

Hey! Does it cost $15? Page flip flash component or object: http://www.flippingbook.com/.

Posted by: kostik on November 28, 2004 07:47 PM

Wow! That flippingbook looks even better than macc's. To bad it's not free...

Posted by: ixn on November 29, 2004 01:03 AM

hi, fabio (or anyone at all)

i'm experiencing the same problem as you. what's the best way to insert movie clip in each page so that page stops refreshing on mouseover. have you had much luck so far?

Posted by: Monda on November 29, 2004 02:04 AM

Hi Monda

Not yet, but I'm still looking for.
I bought the Flippingbook mentioned above.
It's solve this problem, but I'm still testing it.
My book has one hundred pages and I'm figuring out how to go to direct to the page 99 without watching 98 pages flipping before take me to there. Also I didn't figure out how to make the quality comes low and high, that is really good to make the pages flipping faster, in this Flippingbook.
I'll tell you here as soon I got the answer. And the transparency page seems to not work. I'll tell you. Or probably someone from flipping book could answer this question here or provide some forum about it.

Posted by: Fabio Garcia on November 29, 2004 04:53 AM

Hi! We will include direct gotoPage feature during this week. Thank you for your interest. Updated version will be sent to all our users.

Posted by: Constsi on November 29, 2004 08:53 AM

Nice, and please pay attention to make resolution LOW when the page flip as an option.

Posted by: Fabio Garcia on November 29, 2004 12:16 PM

Thanks Constsi to provide the code for resolution.

Posted by: Fabio Garcia on November 29, 2004 06:28 PM

For Fabio:

For the "gotopage" action without flipping, there's a component that I've found on the Macromedia's exchange [BounceMenu]. It allows you to insert a button with a drop down menu. You customize an external XML file with the number of the page where you want to go. On click/release, the album opens at that specific page.

Posted by: AG on November 30, 2004 12:23 AM

The flippingbook has a lot of potential. I would like to see the direct gotoPage, good to hear coming this week.

tabs option
hard cover and end cover and middle page option
tear page option with the option to replace page
and much more with constant upgrading verisons

Posted by: evision on November 30, 2004 02:36 AM

Thank you AG!

But the Flippingbook will be realeasing the new version this week and I'll wait.

But the big coincidence is that I was looking for a BounceMenu right now to another project.

Many Thanks

Posted by: Fabio Garcia on November 30, 2004 02:48 AM

Why wait when a Flash component (Flash Flipper Deluxe) is already available on the Macromedia exchange forum. It features even more options than the flippingbook code.

MJ

Posted by: Mike J. on November 30, 2004 03:25 AM

Now, this FLash Flipper Deluxe, costs more, $40 and doesn't do anything more than Macc's free open source code[from what I've seen on one of the demos in author's site]. The gotopage action can be easily inserted into the movie using a menu type of movie. Even I could do it and I'm not an advanced Flash programmer.
At this point advantage Flippingbook.
What I'd like to see in such a component, free or not, a search function that can be integrated with a DB, an indicator of the page similar to what RichFX.com offers to their clients [holdeverything.com, the top navigation bar], maybe even a tab insert like the catalog above.
While the work we talk about here is outstanding, did anybody test this app on a regular computer, hooked into a slow 56k connection? Especially a dynamic version, that downloads pages on-the-fly?

Posted by: AG on November 30, 2004 06:20 PM

Hi,

I have a problem loading external .swf or .jpg on a page. It keeps reloading and flickering when starting flip action. Some of u guys had this problem, I was wondering how u fixed it. Please contact me.

Posted by: Ian on November 30, 2004 07:52 PM

First off...AMAAAAZing script!

now to my problem--i too cannot get the
gotoPage(); to work at all, is there something
i might have changed to make that not work,
because i made a point not to change too much.

i just really want to figure out how to make a
click-able table of contents at the bottom of each
page to jump to specific pages.

if anyone can email me how Macc got his table of
contents to jump to specific pages, it's be a great
help

Posted by: greg on December 1, 2004 09:21 AM

just wondering if anyone has any advice on how to stream flash video through the pages of this baby with flash mx components ?

Posted by: matt on December 1, 2004 11:01 AM

I would like to use macc's pageflip on my page, but it seems to be unusable for what i want it to do:

I have a flash movie with an empty movie clip inside. if button is clicked loadMovie() loads pageflip into this empty mc. everything works fine. BUT: If i click the very same button again, pageflip won't work anymore.

i experienced the same problem when pressing ctrl+enter during preview in flash. the clip will reload, but you can't flip pages anymore...

anybody any idea?

dzire187
http://www.chiller.de

Posted by: dzire187 on December 1, 2004 11:52 AM

We`ve just finished new version of flipping book. With directGotoPage() function and some bug fixes.

2Greg: with flipping book you can easily create table of contents. Just turn off flipOnClick parameter and use gotoPage or directGotoPage function.

2Mike J: Flash Flipper Deluxe is a good component. But I think it is too expensive. And it really has less features than flipping book.

1. no animation control
2. no sound support
3. imperfect cahing
4. no library symbols support
5. no navigation API (only 2 additional components)
7. only XML based setup
8. only flash mx 2004 support (flash player 7)

Posted by: constsi on December 2, 2004 12:17 AM

Hi there!

Help me!

I have a double pages in swf, On the left page I have a button to change the background. How could it change the background of the right page at the same time?

thanks in advance

Fbio

Posted by: Fabio Garcia on December 2, 2004 12:50 AM

I purchased the flippingPage component, its pretty damn good for the price although it seems to run a bit dodgy on anything other than 12 fps.

its very easy to get the dynamic thing happening, ive posted a basic sample and the xml file at http://www.flamous.net/2004/12/building-dynamic-page-flip.html

Posted by: FLAmous on December 2, 2004 04:09 AM

2FLAmous: very nice demo! Just set your movie fps up to 30 and get more smooth animation.

Posted by: constsi on December 2, 2004 09:03 AM

yo constsi, thanks for that. i have tried 31fps but seem to get very rough results.

i am please to say that as a client of flippingpage I have received an updated version of the component via email, with some bug fixes. This suggests I can expect good ongoing service - great value for US$15.

Posted by: FLAmous on December 2, 2004 10:55 AM

I am using PageFlip on a website I am making and it is working great. However after reading all of the comments on this page I have two questions I am hoping someone can halp me with. The first one is how do I go about getting the book to display dynamic content? Meaning I would like to set up all of the content in another file and have PageFlip load it from this file, this way the book will be eaiser to update. My second question is how do you set up chapters in the book? Meaning I would like there to be an index page at the front of the book that allows you to skip to certain pages in the book, my book has about 20 pages and I want people to be able to skip ahead in case they only want to see certain parts. Any help at all would be appreciated. Thank you.

Posted by: Joel Guilford on December 2, 2004 09:06 PM

I noticed I accidently gave the wrong e-mail address on my last post so this post has the correct one.

Posted by: Joel Guilford on December 2, 2004 10:44 PM

I love seeing this thing progress, and have a question related to the new skip page option in the gotoPage function; if the goto page is the LAST page, it seems the hardcover is on by default. Any plans to get rid of this? Am I missing something simple?

Posted by: eyemkent on December 7, 2004 02:52 AM

Help me...

I can't find modify to increase page num.

How can I do increase page ....

Please, help me.....please...

Posted by: J S Hwang on December 8, 2004 12:40 AM

What is the link to the Flash Flipper Deluxe?

Posted by: javolin on December 8, 2004 10:36 PM

Joel:

to make an index, create a button, attach this action

on(release) {
_root.gotoPage(X);
}

where (X) is the page number you want to jump to..

repeat for more contents

Posted by: matt on December 9, 2004 03:45 AM

Doest anyone so you know to to solve the resizing page size problem ? THe flipping animation turns wrong then the page size is change.

Posted by: Iverson on December 9, 2004 08:35 AM

This source code is great Macc!!! If and when should we expect version 3? Just wishful thinking...

Posted by: Eric on December 9, 2004 01:24 PM

Hi -

I'm back after having tried to figure out why the gotoPage function will only seem to do a hardcover turn when that page is my back cover. I can find nothing in the code that accounts for this. Anyone else have this experience? Any known solution?

Posted by: eyemkent on December 9, 2004 07:24 PM

Hi!

I'm using Macc's awesome pageflip v 2 as a template for a case-folder, works swell.

I've runned in to a problem tough, on the frontpage (page1). I've placed a mc and it works fine and all, the problem is that when I go for the corner of the page (so that it curls up) the movie clip reloads and start over...

Anyone who can solve this? It's probably not a big problem but as many others I'm more into the design bit than I am doing some real thinking and solving difficult problems...i.e actionscripting...

/ Tomas

Posted by: Tomas on December 10, 2004 01:42 PM

Hi Tomas

You are not the first one asking for this, but I think until Macc release the new version you should try http://www.flippingbook.com

Posted by: Fabio Garcia on December 10, 2004 08:43 PM

I am trying to turn off the transparancy on page 7 and 8... how do I do that...? I am not a flash expert..... I have tried to figure it out, but no luck!!

Posted by: WES on December 13, 2004 07:28 AM

thanks! you are the man!

Posted by: Cid on December 13, 2004 07:51 AM

Hi
I really love the pageflip but I'm a total flash newbie.
Now I would like to REMOVE some pages to end with a book with 4 pages, but it doesn't work.

Can someone please help me?

Posted by: Winny on December 14, 2004 12:47 AM

Hi folks,

after endless hours of trial and error I found a solution to dynamically add text to the pageflip pages:

1. From "setPages" you have to call another function create_entries (has to be created) each time a page is added dynamically via attachMovie:

function setPages(p1, p2, p3, p4) {
p0 = p1 - 2;
p5 = p4 + 2;
if (p0 maxpage) {
p5 = 0;
}
if (p1 < 0) {
p1 = 0;
}
if (p2 < 0) {
p2 = 0;
}
if (p3 < 0) {
p3 = 0;
}
if (p4 < 0) {
p4 = 0;
}
pleft = pages.p1.page.pf.ph.attachMovie(pageOrder[p1], "pic", 0);
create_entries(pleft, p1); // FUNCTION CALL
pages.p1.page.pf.ph._y = -ph / 2;
pleftb = pages.p0.page.pf.ph.attachMovie(pageOrder[p0], "pic", 0);
pages.p0.page.pf.ph._y = -ph / 2;
if (hflip) {
var tm = pages.flip.hfliph.attachMovie("sph", "sp2", 0);
sp2 = tm.ph.pic.attachMovie(pageOrder[p2], "pic", 0);
create_entries(sp2, p2); // FUNCTION CALL
sp2._y = -ph / 2, sp2._x = -pw / 2;
sp2 = eval("pages.flip.hfliph.sp2");
var tm = pages.flip.hfliph.attachMovie("sph", "sp3", 1);
sp3 = tm.ph.pic.attachMovie(pageOrder[p3], "pic", 0);
create_entries(sp3, p3); // FUNCTION CALL
sp3._y = -ph / 2, sp3._x = -pw / 2;
sp3 = eval("pages.flip.hfliph.sp3");
}
else {
pages.flip.hfliph.sp2.removeMovieClip();
pages.flip.hfliph.sp3.removeMovieClip();
sp2 = pages.flip.p2.page.pf.ph.attachMovie(pageOrder[p2], "pic", 0);
create_entries(sp2, p2); // FUNCTION CALL
pages.flip.p2.page.pf.ph._y = -ph / 2;
sp3 = pages.flip.p3.page.pf.ph.attachMovie(pageOrder[p3], "pic", 0);
create_entries(sp3, p3); // FUNCTION CALL
pages.flip.p3.page.pf.ph._y = -ph / 2;
}
pright = pages.p4.page.pf.ph.attachMovie(pageOrder[p4], "pic", 0);
create_entries(pright, p4); // FUNCTION CALL
pages.p4.page.pf.ph._y = -ph / 2;
prightb = pages.p5.page.pf.ph.attachMovie(pageOrder[p5], "pic", 0);
pages.p5.page.pf.ph._y = -ph / 2;
}

2. function "create_entries":

function create_entries(page_ref, pnum) {
switch (pnum) {
case 1 :
item_ref = page_ref.attachMovie(old_mc1_name, new_mc1_name, mc1_depth);
break;
case 2 :
item_ref = page_ref.attachMovie(old_mc2_name, new_mc2_name, mc2_depth);
// and so on ...
break;
}
}

An example can be downloaded from here (the overall structure of the example is very incomplete so don't wonder if you don't see so many things happen): http://www.computing.dcu.ie/~tkoller/pageflip_dynamic_text.zip (the AS 2.0 files are not really interesting for you, I just added them for the sake of completeness)

The text data are loaded from the external XML file lang_db.xml; of course you can do the same thing with a text file. Then depending on the data found, a movieclip is attached to either page 4 or 5.

I renamed pageflip to magazine. magazine is loaded from stage.swf into level1.

The Flash files are formatted in Flash MX 2004. Sorry for those with Flash MX! Tell me if you want to have more info about the code (sorry but I won't give a full-blown "AS for beginners"-tutorial).

Cheerio,

Thomas

P.S. Thanks a million to Macc for the great software!!

Posted by: Thomas on December 14, 2004 06:38 PM

Hi folks,

what I forgot to mention (might be confusing): in the create_entries function above a movieclip is attached (so you might wonder how this relates to dynamic text). The "prefabricated" mc I'm using has two text fields. These text fields are then dynamically filled with text in create_entries (not shown above but should be straightforward).
IMPORTANT: You have to embed the font used for these text fields, e.g. selecting the text field -> property inspector -> button "signs/symbols/characters..." (I don't have an English version of Flash, so I don't know how this button is labelled in English; it's the button right of the "Var" textfield) -> embed the characters you need in the text fields. Otherwise you won't see anything.

Cheerio,

Thomas

Posted by: Thomas on December 15, 2004 04:36 PM

Here's a small prototype of a catalog based upon the above code:
http://artwest.com/cat/cat.html
Some typical buttons, with a "gotopage" button based upon the "BounceMenu" found on the Macromedia Exchange.

Posted by: AG on December 16, 2004 07:09 PM

Would anyone please send me this file or show me where I could download it, the link given here is not working and I would really love to see how it works.

Many thanks in advance.
Ana

Posted by: Ana on December 18, 2004 07:07 PM

I was trying to download the source code that is supposed to be posted at http://www.iparigrafika.hu/pageflip, but I keep receiving a connection refused error message. Does anyone have any good source code for the page flip? One that looks at least as clean as http://www.oreillynet.com/javascript/2004/09/03/graphics/pageTurn04.swf? Thanks.

Posted by: Flexx on December 18, 2004 07:09 PM

can someone PLEASE help me? I need a little bit help with removing some pages. I'd like to end up with a book with less pages instead of more but I can't seem to make it work properly.

Thanks.

Posted by: Winny on December 19, 2004 07:41 PM

I have an problem.

I try to add an "loading" on the front,because i want to put the swf on the website,i have used many ways,but it always can't see the effects.It always downloaded the all movie,then can see the loading bar,it's too slow,who can help me?

I try to add farme or add a new scene,but all failed.

Probable it's an easy problem for u,but it's so confounded for me.

Posted by: Louis on December 22, 2004 12:32 AM

Great pageflip it works fine. Only there are a few persons that didn't no that it was drag and drop possibility so a want to add an play-button, playback-button and a stop-button for that kind of people. Can anybody help me to make this.

Marc

Posted by: Marcus on December 29, 2004 05:25 PM

SUPER cool stuff.

however, im having a problem :S -- lets say im in flash and then i try to preview it(ctrl+enter), it works fine. But when i try to press ctrl+enter again and try to flip a page, it doenst work.

HEeeeelp! :(

THANK you very much in advance


_albert

Posted by: Albert on December 31, 2004 10:23 PM

Hi there....

Is there a way to randomly change the background when you turn to different pages? I'm not talking about the background of the actual book.... just the background it is sitting on.!

Thanks

Lee

Posted by: Leeloo on January 6, 2005 06:13 AM

Check what i've made with the pageflip!: http://www.derotterdamsche.net/website

Posted by: Jan on January 10, 2005 05:04 PM

it's a good idea... everybody should show what they have done with pageflip or similars, then we could learn more with each others

My magazine I did with FlippingBook:
http://www.itsreal.com.br

Posted by: Fabio Garcia on January 11, 2005 04:23 AM

thx very much
i think i'm gone full understand it in a few days but that's ... great.

Posted by: Tuf on January 18, 2005 05:30 PM

Hi! I'm on a tight deadline and I'm trying to add more pages to my flipbook and not having any luck.

Here's the code:
pageOrder = new Array("page0","page1","page2","page3","page4","page5","page6","page7","page8","page9","page10","page11","page12","page13","page14","page15","page16","page17","page18","page19","page20","page21","page22","page23","page24","page25");

page=0; //first page (normally it is 0 = the page before the cover = blank page)

maxpage=24; //last page (back cover, should be even number)

The problem is the book still stops on page 16 for some reason.

Any ideas what may be wrong?

Thanks for your help!!

Kris

Posted by: kris on January 19, 2005 02:20 AM

Hi Kris

did you create more mcs into the library?

also don't forget to linkage them

Posted by: Fabio Garcia on January 19, 2005 03:03 PM

Hi kris,

Check page "symbol properties" (PC: left click on the page mc) and click "Advanced" to check if there something different as other pages before

Posted by: Gatta on January 19, 2005 06:47 PM

Fabio & Gatta,

thank you sooo much!

I forgot to linkage them.

It works great now and I learned something new!

Best,

Kris

Posted by: kris on January 20, 2005 09:34 AM

Hi, hope someone can help.

I've problem with buttons. I've some buttons on a page but they can click on a page upper too... how can I solve it?

Thanks for help

Regards,
Gatta

Posted by: gatta on January 20, 2005 11:50 AM

Hi folks, I'm trying to create a personal journal. Take a look here to see what I've done with this cool flash script. [url]http://massimo.dileo.com/diario[/url].
Unfortunately it's a little bit slow (i think because actualy it loads all the pages all togheter) I still need to optimize and complete it.

Cheers

Posted by: Massimo on January 20, 2005 01:39 PM

Sorry, the correct url is of course: http://massimo.dileo.com/diario

Cheers

Posted by: massimo on January 20, 2005 01:52 PM

Beautiful script, thank you for sharing it!

I have tried to find the solution to keep some of the pages below the ones you flick, such as the cover, for example. Does anyone know how to do this?

It will be much appreciated.

Thank you!!

Posted by: Ana on January 20, 2005 07:21 PM

Hi, can you make a 1 piece paper that flip up?
I mean, using the tear effect, just make the a piece of paper flip up and fly away from the screen.

Something like you place a piece of paper on the table. and the wind blew it away, using the tear effect.

Thanks!

Posted by: colexe on January 22, 2005 06:22 AM

I've a new idea for the page tear off, but dont know how to do... that is the tear page will be save on the user computer's desktop or somewhere they choose.

Macc, What do you think?

Posted by: Gatta on January 22, 2005 04:30 PM

A minor bug fix : the use of "maxPage" instead of "maxpage" at line 107 makes the flash movie freeze in MX 2004. Very good job. Thanks for sharing

Posted by: Rimbiky on January 23, 2005 10:44 PM

Hi...

I would like to use pageflip V2 as a journal on my website, but I want to be able to load my journal entries as text files instead of having to edit the source code all the time. I tried making dynamic text fields and externally loading the text files, but when I turn the pages it seems to become one dimensional. It loses the page turning effect...meaning you can't see the text on the back of the page as you are turning it. It all just pops up at once. I hope this is not too confusing. If anyone at all can help me with this I would REALLY appreciate it.

Posted by: TwoComma on January 24, 2005 03:06 AM

Adding pages
I know some people asked this question before, but damnit I can't get it!
HOW DO I ADD PAGES? Would be very kind if you could help a flash newbie! Drop me a line.

Posted by: Lupus on January 24, 2005 10:51 AM

Hi Macc

First of all, I want to say that you did a great job with that flip animation!!
We were looking for something like that for long time, and you gave us the nearest solution to go further in our project.

We gave a codes glance and could make some changes, but action script code isnt well known for us. We need to know, how to add more pages (since 50 to 250 pages more less) and create an index for whole document.

Well appreciate your help and waiting you make contact with us

Eligio Moreno
Caracas-Venezuela

Posted by: Eligio on January 24, 2005 05:29 PM

Rimbiky!

so... it's better use mapage instead maxPage on line 107

right?!

Posted by: Fabio Garcia on January 25, 2005 04:51 AM

Has anyone found out why the links only work on the left hand side pages? :-)

Posted by: Ana on January 25, 2005 11:17 PM

Hi All!

Thanks again. Thanks to Rimbiky who find a bug in the code (I'm still using MX). Everyone who need any help or have some idea for a new feature can use my email address to get replied.

By

Posted by: Macc on January 25, 2005 11:40 PM

Hi Macc,

I have found that to make a link from a page you insert a button under the content layer... and the actions at the top of the layer being (for page 14 as an example):

btn14.enabled = (_root.getPN(14)==_root.page);
trace("page14 reset");

This works in all the even numbered pages, but I have the same problem as someone said before, this doesn't work on the right side pages...?

Anyone has a solution?

MANY THANKS!!

Posted by: Lucy on January 26, 2005 12:18 AM

Hi Macc,

What is your email address? I don't find in your site, maybe I don't understand the language. Could you email me? Thanks a lot to share the pageflip.

Posted by: gatta on January 26, 2005 01:00 AM

'Posted by: Lucy on January 26, 2005 12:18 AM

This works in all the even numbered pages, but I have the same problem as someone said before, this doesn't work on the right side pages...?'

Use the exact same code for right side, works for me.

Posted by: Lurker on January 28, 2005 12:52 AM

Lucy Hi,
Do this for each page you put a button -
For Left Page ( even no pages )you would put
btnNUM.enabled = (_root.getPN(14)==_root.page);
trace("page15 reset");
For Right Page ( odd no pages ) you put the same
btnNUM.enabled = (_root.getPN(14)==_root.page);
trace("page15 reset");
Change the btnNUM to whatever yours are, the btn number dosen`t have to be same as page number could be btn31.
So if I put a button on Page 11 I would put,
btn19.enabled = (_root.getPN(10)==_root.page);
trace("page11 reset");
This is how I do it and it works. I hope I explained it clear enough.

Posted by: Sir Thanksalot on January 29, 2005 07:34 AM

Did anyone figure out how to stop the pages flickering or temporarily disappearing when clicked on!!?

Cheers!

Posted by: Leeloo on January 29, 2005 09:03 AM

Sir Thanksalot!!

Thanks a lot! Your script for the button for the right hand pages worked! :-)

Thank you again!

Posted by: Lucy on January 30, 2005 01:39 PM

Me again...

Ok I've figured out that I need a dynamic preloader to make all my jpegs load together....

The link to the dynamic loader has gone is there anywhere else I can get hold of it.... also.. when it comes to preloaders, I hate them and can never get them to work..... If I have my book inside a movie clip, where do I put the preloader in order for it to work properly!!

MANY THANKS! :-)

Posted by: Leeloo on January 31, 2005 05:15 AM

First of all... Amazing job !!!

But this is my question/problem: I have a movieclip inside a page and another one in the next. I want let the next' page movie starts when the movie inside the page before ends. But i don't know the correct path.

Please help me ! and tell me how i can contribute with money !!! :)

Posted by: Marchinosss on January 31, 2005 05:20 AM

Ok... I'm gettng very close to deadline and starting to freak out abit!! Can anyone help!!

I have put a preloader at the beginning of the book and it seems to load it fine, however I'm still getting the images flicker on and off... it looks very bad and i can't figure out how to stop it!!

Please help!!

Thanks

Posted by: Leeloo on February 1, 2005 05:43 AM

hi,
the page flip effect is one of the nicest i've ever seen.. it's just great..
but, if i look at the code of this effect it's like '????' in my head...
so now my question:
could ANYBODY post this effect with just 2 fix pages ( front & back- cover ) and just one flipping page??
just if it is possible.. it would be great..
so i maybe could understand the functionality much more better...

thx beforehand..

poppey

Posted by: poppey on February 4, 2005 09:35 AM

Hi all,

First of all, big up to Macc! You definitely are the Macc!

I was just wondering what happened to the pageflip v.2 DYNAMIC version. I would love a copy of the source code and the link no longer exists :(

Posted by: Kelvin on February 8, 2005 05:09 AM

Hi,

help!!!!!!!!!!!!!!!!!!!!!!!!!
I have the 2 arrow buttons (Left & Right), the code is:
Right:
on (release) {
aflip = false;
flip = false;
flipoff = false;
canflip = true;
gdir = 1;
gflip = true;
autoflip();
}

Left:
on (release) {
aflip = false;
flip = false;
flipoff = false;
canflip = true;
gdir = -1;
gflip = true;
autoflip();
}

My problem is how to make the right button disappear/non-clickable when the book arrive to the last page?

Many thanks.

Posted by: Tine on February 8, 2005 05:54 PM

Hey guys, I too was suffering from the problem of having a book .swf load into another .swf file dynamically, and having it work when you go back and view it.

Here's my solution:

I am using 2 instances of the book code in my project, so i had to use 2 different mouse event variables to check to see if the book.swf files had triggered the listeners.

In my book.swf on the second frame of code is this:

if (!_global.MouseListenerCount)
{
Mouse.addListener(mousecontroll);
_global.MouseListenerCount = 1;
}


It replaces Mouse.addListener(mousecontroll);

In the movie that i am loading the book.swf file into, on the first frame is:

_global.MouseListenerCount = null

For the other instance of the book that i am using in the project, I just duplicated the variable in the main movie that the books load into, and gave it a unique name, then set the other book to look for that variable name when it runs.

It works like a charm.

Posted by: Andrew Waters on February 10, 2005 07:46 PM

Hi guys--

Thank you so so so much for the wonderful script!
It's come in handy for a school project.

However, I am having problems adding more than 16 pages. All pages 17+ disappear and become transparent page turns. I've read all the messages posted here and I've tried everything (well hopefully not everything)

Here is the code:

pageOrder = new Array("page0","page1","page2","page3","page4","page5","page6","page7","page8","page9","page10","page11","page12","page13","page14","page15","page16","page17","page18","page19","page20","page21","page22","page23","page24","page25","page26","page27","page28","page29","page30","page31");


page=0; //first page (normally it is 0 = the page before the cover = blank page)
maxpage=32; //last page (back cover, should be even number)

You can see the book here: http://www.jessivollrath.com/book.htm

Any help is greatly appreciated!!

Posted by: Jessi on February 11, 2005 12:16 AM

This is a great script! Thanks for sharing! :) Have one question tho (uh oh!..LoL). I wanted to add the percent loaded and total bytes to show on the loader. Any ideas how to add it on the loader? Much thanks!

Gabe

Posted by: Gabe on February 11, 2005 07:16 AM

It's great of You Macc to post this open source...

I do have a rather interesting problem. I've been contracted to put a book 400+ pages online using your pageflip flash.

This book will be in XML form embedded in the flash file for download (no online viewing).

The problem i'm running into is looking in your array of pages and all the movieclips exporting their instance names I can't very well have 400+ movieclips and the associated arrays. Is there anyway I can have the pageflip flash use a total of 2 pages and just have it cycle through? That way I can place my programming and xml driven elements in there to automatically page up the text I need.

Any thoughts would be great!

Thanks in advance.

Posted by: Steve on February 12, 2005 09:00 PM

Can anyone help!

I would like to add print option to the Page flip

and have no idea how to go about it

email me naz@intstudy.com

thanks in advance

naz

Posted by: naz on February 14, 2005 05:57 PM

Hello,

Great script, Macc! However, I have an urgent question, and I'm hoping someone will get back to me on this one :)

I added MP3's to my album and created the play, pause, and stop function on page3. I had to import the MP3 files on the first frame for me to call on them when a button is pressed. However, I can't seem to get the preloader to show up while loading until it gets to 90% of the total downloaded. I'm wondering how can I get the preloader (or loader) to start showing up in the beginning instead of when it reaches 90%?

Here's my script: (script is on frame 1 in root)

MP31: Identifier = mp301 Instance = mp31
MP32: Identifier = mp302 Instance = mp32
Mp33: Identifier = mp303 Instance = mp33

*All of which are exported in the actionscript and in the first frame. I've tried to not export them in the first frame, but when calling for them nothing happens.

Please advice...Much thanks!

Lucas

Posted by: lucas on February 14, 2005 09:13 PM

Ok--

I solved my own problem...

On adding pages: I would get "ghost pages" after 16. I made sure all movie clips were linked in the clip's properties. The ghost pages were still there.

However, I found that if you put all your pages on the exported layer on keyframe 4, that those pages will appear.

I don't know if this is necessarily the easiest way to do that--I am still a newbie in flash (if you couldn't tell already). But it worked for me...

Just thought this would be helpful for anyone in the same boat as I was.

Posted by: Jessi on February 15, 2005 12:05 AM

Hi

First, thank you Macc for posting this great piece of work.
I am having a small problem. When I set "maxpage" to any even number less than 16, the last page does not flip.
Could anyone help me please?

Many thanks

Nishaal

Posted by: Nishaal on February 16, 2005 05:23 PM

Hi everbody! Macc you rox, congratulations!!!
Thanks, it works a lot for me!!

but...

Doesn't it works in Flash Player 7 and AS 2.0?

Becaude my project would need the flash new components...

The error message is:

"A script in this movie is causing Flash Player run slowly. If it continues to run, you computer may become usresponsive. Do you want abort the script?"

Thanks!!

Posted by: Javalonte on February 23, 2005 02:55 PM

Hi everybody
I downloaded the fl but the loader doesn't work !!!
Does anyone ahasd the same problem??
thank you
Nadege

Posted by: Nadege on February 23, 2005 06:25 PM

Hi again!

I got it! I didn't need Flash Player 7, just the AS 2...

But, i have one more question! :)

How can i disable the pageflip effect?

I remeber, something like aflip=true; worked to me, but not now...


Thanks a lot!

Posted by: Javalonte on February 25, 2005 01:57 PM

Hi

I have a query, I have made the page- flipping catalog. I want to to break the movie seperate swf files, as I have large number of pages. But when I do this, and click on the back button, it replays the entire animation and comes to the page.

Is there a way, that I can specify the target as a specific frame number number in a diff movie.

Reena

Posted by: Reena on February 28, 2005 12:08 PM

HI to all,
i got 2 simple questions

I increased the number of peges...now i have 28

28+
page0(front cover)
page29(back cover)

I can see all pages on the book but when i flip the page 28(last before cover) it filps right(it has hard cover) but it lasts also on the ground.... if i try to click this last one(1 on the ground) it's not flippable....
--------------------------
---------------------------
When i try to export the movie i have allways this on my output message:
Symbol=page2, Layer=content, Frame=1: Line 1: Statement must appear within on/onClipEvent handler
trace("page2 reset");

Symbol=page2, Layer=content, Frame=1: Line 2: Statement must appear within on/onClipEvent handler
chkon._visible = _root.hcover;

Symbol=page2, Layer=content, Frame=1: Line 3: Statement must appear within on/onClipEvent handler
if(_root.getPN(2)==_root.page) {

Are these 2 problems related, anyone knows how to solve???
many thanks boyz
BYE

Posted by: Ciotta on February 28, 2005 04:07 PM

SOrry 4 trouble i solved all bymyself....
MACC........AWESOME WORK man, AWESOME work!!!!!

Posted by: Ciotta on February 28, 2005 06:40 PM

Hi..

you can add pages by constructing the pageOrder array before you start the book.

I have modified a guestbook that gets the data from mysql (through php). First I read the number of entries so I can construct the pageOrder array (first you must insert page0 and page1 for cover).

Ok here is the code (maybe it is not the cleanest code possible .. but it works for now)..

myEntries.load("http://www.zapstudio.net/dvb/GuestBook.php?action=read&r="+random(999)+"&NumLow="+0);
myEntries.onLoad = function(success) {
if (success) {
maxpage = Number(this.totalEntries);
if (maxpage%2 != 0) {
maxpage++;
}
arrayNum = (maxpage/2)+1;
maxpage += 4;
trace("blip"+maxpage);
//trace("blip"+this.totalEntries);
pageOrder = new Array("page0", "page1");
for (i=0; i<arrayNum; ++i) {
pageOrder.push("page2", "page3");
//trace ("bla"+pageOrder[i+2]+pageOrder[i+3])
}
pageOrder.push("page16", "page17");
}
};

When the book is loaded the data is loaded while you list. I have made another array so I the data is only loaded once via php (the next time it's loaded from the array).

you can check the work in progress here:
http://www.zapstudio.net/dvb/guestbook.swf

or you can add entries here:
http://www.zapstudio.net/dvb/admin.php

it's not finished yet.. so it may contain some bugs...

jani

Posted by: jani on March 1, 2005 10:51 AM

Guys is their a way to use the gotoPage function and instantly jump to the page you need without seeing the flip animation.
I have a few hundred pages and having to sit through while it turns pages is not an option my client will be happy with.
Even adjusting the speed of page turn doesn't help.
I seriously need a quick solution I have less than 24 hours to correct this and am getting seriously worried!
Help!!!

Posted by: Luke on March 1, 2005 06:36 PM

Not the final word on Page Flip I suppose then, *sigh*

Still can't find a solution or anything/anyone online to help me, gonna have to can the flip effect for my project unless I find something quickly...

Seems this code works nicely for mini-books but not content heavy stuff...

:(

Posted by: Luke on March 2, 2005 02:21 PM

Well well well!

Gave it my last shot and found a solution that is actually very very simple!

Modify the following to flip automatically to any page without sitting through the page flips!

In the function autoFlip() theres a line of code:

aadd = hit*(pw/gflip? 5:10));

change it to:

aadd = hit*(pw/gflip? 0:10));

Later
Luke

Posted by: Luke on March 2, 2005 04:00 PM

Hi Jani,

Your idea is wonderful to add a new page. But I don't know any about mysql, php know to make a submit form communicate with Flash only. Can I have a full tutorial in .zip format email to me? so I can start to learn about it, many thanks!!

Tine

Posted by: Tine on March 3, 2005 03:44 PM

I had developed eBook viewer written by Java Applet. You can see it on my web page, www.eshaho.com/boat/boatlife.html
To disply some eBook with this viewer Java Virual machine has to be installed.
Therefore I want to develope Flash viewer as like this Applet viewer because Flash viewer does not need JVM.
This viewer is depended on the pyramid multi-resolution image processing technology.
Please let me know some information about it.
Help me please!

Posted by: Nomura Hajime on March 4, 2005 06:47 PM

hi guys, first of all this is an excelente piece of work. realy love the page flip engine.

i just discovered it today, so i'm a new on it.

i have costumized it to my needs and everithing worked fine, except one thing. i hope someone help me with it.

i have several swf's to load to my main site
in the main site i have a movieclip to load the swf's
when i load the pageflip swf the first time it works fine, but when i load some other swf and and then load again the pageflip swf it wont work anymore, it simple dont turn pages.

i'm not shure but something tells me tha the problem is that the pageflip engine only works if its on _root, and i'm loading it to _root.myContentMC, "_root.myContentMC.loadMovie("book.swf");"

i tried to load it to levels and its the same, second time it is loaded it stops on the cover of the book witch is page 1 and it wont flip it.


please someone help me

Posted by: urbankuest on March 7, 2005 02:30 PM

Sorry to ask for help that was mentioned before.
After reading almost all the posts i found a post by: Andrew Waters on February 10, 2005 07:46 PM

that's what i was looking for.

thanks Andrew.

Pageflip rocks, thanks Macc. :)

Posted by: urbankuest on March 7, 2005 04:31 PM

Next-Button works with on(release) {autoflip(1);}

greetz

Posted by: danny on March 8, 2005 11:27 AM

first great script!!

But i got a question.
if i got a textfield on the mc "page3" how can i reach it?

example
loadVariables("lvtest.txt", _root.page3.Text);
isnt working

Posted by: mitchel on March 8, 2005 05:14 PM

Jani, I would love to get a copy of the fla and php. That is a great idea.

Posted by: eric on March 8, 2005 11:22 PM

Now thats a nice bit of work there... Thanks macc.

Posted by: j3one on March 11, 2005 11:10 PM

Lets say I have a button inside page 1 (which in effect is page 0) in its linkage attributes and i want that to tell another page ie page page2.gotoAndStop(2); so I can have other content appear on links from opposite pages - may i ask if anoyone has achieved this and if so what the target is...I have tried this too and it didnt work
on (release) {
_root.pages.flip.page1.gotoAndStop(2);
}


Any help would be most appreciated

Thanks in advance
Jools

Posted by: JUlian on March 12, 2005 06:14 AM

i'm new.. i want this pageflip to appear in the upper left corner on load.. whaat to do?

Posted by: wilcina on March 13, 2005 06:42 AM

found out how...
how do i add a zoom to my page?

Posted by: wilcina on March 13, 2005 03:27 PM

Hi All, I've read through this entire page and played around but I can't seem to resize my pages to 705 wide by 338 high, The shadows or something always go wrong. Would appreciate a little help (walkthrough?) or even a .fla if some kind soul Coud help?

Cheers
Dan

Posted by: Danny on March 17, 2005 05:08 PM

check it out
www.ycbookproject.com/main.html

Posted by: Wilcina on March 19, 2005 03:06 AM

Hi,
Great page-flipper... however, when the pageflip.swf reloads, it won't flip anymore.

Any suggestions or help would be greatly appreciated.

Thanks

Posted by: Dave Harper on March 20, 2005 12:24 AM

In response to the problem loading swf's - a friend helped me with this. It seems as though the mouse listener was holding data from previously loaded swf's.

In my instance a button was caling a new pageflip swf :

Try adding these lines that should clear out some hold-over data. Here is
the complete script:

wk1_bt.onRelease = function() {
Mouse.removeListener(mousecontroll);
onEnterFrame = undefined;
resetPages();
reset();
_root.loadMovie("story1.swf");
}

Posted by: melachai on March 21, 2005 08:37 PM

Hi,
this flipping pages is really GREAT. I'm doing an experiment on flipping pages for online magazine. But, this makes me impressed. Can somebody help me giving a comment on my project. I'm researching whether or not the experience of reading printed magazine (e.g.flipping pages) should be implemented in the online magazine? Do u think people will read it? do anybody like to read magazine online?
Pleaseeeeeee help me in my research.....:)
Thank you so much....

regards,
michiko

Posted by: Michiko on March 23, 2005 01:28 AM

Brilliant use of Flash and actionscript.

I have almost completed a brochure using this wonderful script.

I have figured out many of the features including navigation. One thing still puzzles me tho.

Is there a way to get the pages to automatically flip with a time delay. I would like this to start flipping automatically once the file has loaded. Is there also a way to loop the pages once it reaches the end.

I hope you guys can help me out or provide me with a .fla with this automatic loop feature enabled.

Thanks,
G

Posted by: Kobiman on March 23, 2005 04:12 PM

Absolutely amazing flipping effect! Thanks macc for sharing this with us. I have one question, I can't figure out how to add a preloader for the .swf, my entire book is around 6mb, (yeh..lots of pictures) so I really need a working preloader. I tried making another scene and put the preloader in it, didn't work. I also tried putting the preloader in first frame, didn't work either. Can you guys help me out? thanks alot!
ps. I'm using the open code version of the page flip .fla
thanks again.

Posted by: Toro on March 23, 2005 06:47 PM

This script is amazing, its exactly what Ive been looking for. Ive been hauling a$$ through this project thanks to your steelo. Much love. I have an odd request from the client who has seen this in all its beauty is there a way to create and accordian style layout in the middle of the book? basically its similar to a centerfold folding out both ways in the middle of the brochure.

Any insight would be great!!

Posted by: Omar Yousif on March 25, 2005 07:17 PM

Hi again, the deadline for my project is coming real soon, can someone point me to the right direction regarding the preloader? I've already get all the works in the flash done execpt the preloader, guys, please help me out, it's a 6 mb files.....Please, if anyone that can help either send me an email or ans me here, I really couldn't figure out the preloader for the flash.....it wouldn't show up in the .swf......

Thanks

T

Posted by: Toro on March 25, 2005 09:18 PM

Ok I got the folding to work. I have another question. If I load a pageturn in another level, say 10 for example, I have the same problem with the script working the second time. I figured out the

Mouse.removeListener(mousecontroll);

trick but it doesn't work for me when I load into another level. Any suggestions would be greatly appreciated.

Posted by: Omar Yousif on March 29, 2005 07:29 AM

Doh!

I found it. Everytime you unload the movie you just have to remove the listener. My bad. Time for sleep. Here's the code for reference.

_root.subWork.onRelease = function() {
unloadMovieNum(10);
Mouse.removeListener(_level10.mousecontroll);
// ..some other actions not pertinent //
delete this.onRelease;
};

Posted by: Omar Yousif on March 29, 2005 08:51 AM

Hi,
I've been playing with this for a bit now but i needed it to automatically flip the pages on a timer like some of you here. I just managed to do it but it could do with being a bit more clever.

It's real easy to do so i'll post the instructions here rather than a new pageflip file.

Step 1: Create a new layer.

Step 2: Put a keyframe on the same frame as the 'start' frame. This is frame 6 on the latest one.

Step 3: Put the following in the action script for that frame.
//----- start of code snip -----
function ajdFliper(){
autoflip();
}
myfliper=setInterval(ajdFliper,5000); // time is in milliseconds
//----- end snip -------
Done.

Every 5 seconds it calls autoflip. It's possible it can be done without the extra layer etc but i'm relativly new to flash. One problem ( feature?? ) is that it still uses the horizontal position of the mouse to flip in that direction but i'm sure some of you guys can work a way around that.

Hope it helps
Aaron

Posted by: Aaron on March 29, 2005 12:01 PM

How do I pass a variable outside the pageflip swf to a parent swf, telling it what page is currently displayed?

What I want to do is have the parent swf load a larger version of the page displayed in the pageflip swf in a separate pop-up movieclip.

Thanks a million! Amazing presentation!

Posted by: Brady on March 29, 2005 07:52 PM

1

Posted by: 12 on March 30, 2005 07:44 PM

hi i know its a dum question but i don't know how to open pageflip_v211.1 in my computer. i mean to say you open this file in which programe.
plz help me thanx...

Posted by: rose on March 31, 2005 12:15 AM

use Macromedia flash to open .fla file
current version is Flash MX 2004

Posted by: null2001 on March 31, 2005 04:34 AM

Pageflip is great but on option I'd like to see is the ability to play a sound when a particular page (say page 8) becomes visible and then cancel and reset the sound when page 8 is not visible. I'm sure it is quite easy but I am not very experienced in Flash.Any help or ideas would be really appreciated.Thank you

Posted by: superbts on March 31, 2005 06:35 AM

Aarons small bit of code enabling the pages to flip automatically is exactly what I have been trying to figure out. I have got the auto flip working now without the need for a mouse click to change pages.

Can someone maybe tell me or post the code that would enable the pages to loop. ie. when it flips to the end page, it loops to the first page and continues to automatically flip.

Thanks in advance,
G

Posted by: Kobiman on March 31, 2005 10:43 AM

hi Tine
I got code ,but have some bug,dont know why?
help 2!

if((pageNuber[i])=17){
testBtn2._visible=false; }
else { testBtn2._visible=true;
}
///testBtn1&testBtn2 is property of button

Posted by: superbts on March 31, 2005 07:55 PM

sorry .lost some code


if((pageNuber[i])=17){
testBtn2._visible=false; }
else { testBtn2._visible=true;
}

// its do not work well, dont know why!

Posted by: superbts on March 31, 2005 07:58 PM

AWESOME!

Posted by: AO on March 31, 2005 11:05 PM

Hi,
Here's an amended version of my bit of code i posted earlier. Now when it get's to the end it should go to the start again. If you want it to flip to the first page when it gets to the end you need to duplicate the first page and put it as the last page also. Here's the code.

//-----
function ajdFliper(){
if(page>=maxpages){
page=0; // or set it to what ever page you want it to start from when it loops
resetPages();
}else{
autoflip();
}
}
myfliper=setInterval(ajdFliper,5000);
//-------

Aaron

Posted by: Aaron on April 4, 2005 03:39 PM

Sorry that's supposed to be maxpage, not maxpages

Posted by: Aaron on April 4, 2005 04:12 PM

Your website sucks. I wanted info on how to add sound and you gave me nothing but commets! You sick!

Posted by: jo on April 4, 2005 06:24 PM

I was just kidding before

Posted by: jo on April 4, 2005 06:27 PM

Great script Macc, for all u guys in the community here, Im wondering if anyone has attempted alternate ways of attacking the dynamic loading of pages.

I had a thought, and I could be totally be off-base, but what if the pages always existed in the fla, so what when they were called they would attach to their proper place in the book and behave normally, and when they are uneeded, they are not removed, but are just made invisible. This way you could get around the constantly reloading of dynamic content.

its kind of ugly I know, but whaddya ppl think?

Posted by: mihai on April 5, 2005 07:32 AM

Hi
I have a problem with this script
I can't insert dynamic text as an xml file on flash animation
Someone can explain to me how does it work
Where add the script
Please help me !!!!

Sorry for my english but it is not my natural language ;)

Posted by: chris on April 5, 2005 05:21 PM

Simply awesome, given me a few interesting ideas. Thanks for sharing!

Posted by: Mark on April 9, 2005 08:58 PM

This script works great!

But I have a question, is it possible to disable the page reset on certain pages?

Because the movieclip I inserted in the page also resets when I point my mouse at a corner of the page. And then it starts over again..

Posted by: GD on April 12, 2005 03:22 PM

Hi,

I have been working on an automatic page flip. I have got the pages automatically flipping once it loads. Can someone help me with using a button to control the automatic flip, ie to turn it on and off. This is to enable people to click a button to start automatic flip and then when they get to a page they like you can click the button and it stops the automatic flipping. Then click it again and automatic flipping starts again.

Thanks,
G

Posted by: Kobiman on April 12, 2005 04:59 PM

Hi Macc. Thanks for the script. I have some movie clip animations in some of my pages but i don't want them to start playing until the page turn before it has settled. Any ideas on how can do that?

Thank you!
-Josh

Posted by: Josh on April 12, 2005 08:24 PM

hi, Can you tell me how to add sound to a particular page and then stop it playing when the page has been flipped? I'm trying to make a storybook with narration! Thanks, E

Posted by: E on April 13, 2005 04:22 PM

I found a bad bug.
try to load the pageflip-book as an external movie into another movie (pageflip = level 8 and mainmovie = level 10), now if you change the page it works perfectly. But if you unload the pageflip-book and reload it (loadMovienumf.e.) it will be impossible to change the page!
Try it here: http://www.fashion1.info/v71/season.html , 1. click on the thumbnail (left) , wait for the pageflip-book, click on back and click again on the thumbnail. It won't work now!

Any suggestions?

Posted by: faz on April 13, 2005 10:39 PM

Hi does anyone have any source file for a larger page size?!?! i've tried the examples above but still cannot get this to work!!!! it's driving me crazy!

any help would be greatly appreciated!!!!

thanks

J

Posted by: Jabba on April 14, 2005 03:08 PM

This code is great, unless you have a large book whose pages you want to load on-demand. I bought flippingbook for $15 and I believe it is superior to Macc's. It loads pages on demand and also can use an external xml file to set jpgs / swfs to load into specific pages.

But of course nothing is ever perfect.

It has an option to 'load on demand', which works perfectly, except that it only loads on demand. Meaning it wont continue loading pages in the background. Not a biggie, but still an annoyance.

Posted by: mihai on April 18, 2005 05:41 AM

has anyone ever figured out the loading external files issue and getting rid og the blinking and flicker

Please any advice will help

Posted by: daniel on April 20, 2005 03:10 PM

Hi! A new free version: v2.12 is available for download. (it is now AS2/Flash 7 compatible)

mihai: I have a dynamic versions too, with support of browsing while it loads pages... nevermind, it is not opensource.

But i'am posting here, because i found my opensource code at templatemonster (for $63)... I think this is not fair, some people buy this template instead of downloading it for free...

Has anyone an idea, how could i sell code on the net? I'm thinking about selling the dynamic version, but i don't know how to do that...

Posted by: Macc on April 21, 2005 01:09 PM

Oh i forgot the link:
http://www.templatemonster.com/website-templates/8096

Posted by: Macc on April 21, 2005 01:16 PM

MACC - please contact me at my email address
I have a solution for you and i think it would work for everybody

Posted by: daniel on April 21, 2005 04:09 PM

Hi Macc,

I think you will find that the reason these companies selling your code are becoming profitable, is because they have resolved the two issues that everyone seems to have.

1) how to stop nested movies from restarting when you go over the page.

2) how to dynamically load the pages into the book.

If these questions were answered, then people would not buy from these companies.

Posted by: Marc on April 21, 2005 04:20 PM

hi everybody

first of all i would like to thank yours for this beutifull peace of opensource..

..but i also got a problem with my preloader
the preloader works until 100% the i got an error message:

a script in this movie cousing flash player to run slow

the preloader works with other files without a problem
the book as standalone also

does anybody know an answer??

Posted by: puno on April 22, 2005 11:29 AM

This is a great piece of work Macc the school project I am working on would not be possible with out it.

I am trying to find a way to have sound play after a page is turned. But I am not sure how to tell a when a page is done turning in the code?

So I am a bit lost where to place the call to the function that will play the sound.

Posted by: mdk on April 22, 2005 09:18 PM

can anybody help me with this....

i need to add some more images in this file , how can i do that?

Posted by: johnny on April 23, 2005 01:50 AM

Macc, this is great stuff. Amazing really. I'm not sure about how to sell on the net, but I imagine that out of all the web designers here there must be someone who can help you out.

Anyways, on to my question. I saw someone asked this a long time ago, but I didn't see an answer. Sorry if I missed something. I'm building this as a book, and when you open it I want the hardcover to stay and never disappear. As it is now, it stays for 2 pages and then disappears. I'm having the same problem with the back cover. I fished through all the scripting, but it's way too advanced for me. Any help would be greatly appreciated.

Posted by: Andrew on April 24, 2005 03:54 PM

Hi Macc

Why don't you try Paypal, i believe it's convenient for everyone. Anyone else has another solution? please post to help Macc selling his tool, because he deserves to be paid back for his great effort creating this amazing script.

And I'll be the first one to buy ;-)

And I suggest for whoever found a bug in this script, or wish to have some feature in future version, please post it, this way we help to make this tool perfect.

I'll start with the first one:

- Creating: Next/Previous buttons:
everything was fine, and it worked perfect, except when i want to go to Page(0), it's doesn't work, i tried different ways but no luck.

here is the code:
-Next:

on (release){
gotoPage(Page+2);
}

-Previous:

on (release){
gotoPage(page-2)
}

Posted by: Ali on April 25, 2005 06:05 PM

Ok, Problem 1 was solved by Tine on February

Right:
on (release) {
aflip = false;
flip = false;
flipoff = false;
canflip = true;
gdir = 1;
gflip = true;
autoflip();
}

Left:
on (release) {
aflip = false;
flip = false;
flipoff = false;
canflip = true;
gdir = -1;
gflip = true;
autoflip();
}

Posted by: Ali on April 25, 2005 06:17 PM

Still no solution to stop blinking with dynamic content.
Where is the dynamic version of this app?

Posted by: Boris on April 26, 2005 01:26 PM

Hi Macc and all,

I can not seem to get working URL rto download latest of this great script, only this templatemonster link, does this mean I have to buy it now for 63$ o someone can please provide me with URL?

Thanks in advance and great work!!!

Posted by: scoobee on April 26, 2005 04:31 PM

Hi everyone,

Can anyone get flash components to work with this? I'm trying to add the "TextArea" component so I can pull information from an html file. I have tested the component on a blank fla document and it works fine. But when I put it into the "page flip" fla it doesn't show up. Any help is appreciated. Thanks.

P.S. Thanks for sharing your knowledge and creativity with all of us Macc. Keep up the good work!

Posted by: Mike on April 27, 2005 07:37 PM

i am adding some new pagfes but they are not working , will you help me ?

Posted by: Simba on May 2, 2005 06:57 AM

I have 30 pages , when i adds they are not show, please help regarding this ASAP

Posted by: Casper on May 2, 2005 10:23 AM

Macc you are right. Someone used your page flip and is selling it on line. That is just wrong. If you do, and I hope you do, sell your dynamic version you can count me as a buyer. I also agree that paypal would be the easiest way for you. I think you would be suprised how many people buy the dynamic version from ya.

Posted by: eric on May 2, 2005 11:33 PM

Hi Guys,

I agree with everyones comments in here. Macc's bit of flash coding and animation is very nice.

One thing I dont agree with is that this type of animation using flash is nothing new and has already been done years ago.

I dont know how long macc has been working on his version, but I am afraid to tell you that people have developed this years ago.

If you want to sell your product, I agree a lot of people will buy it. So go for it. Paypal would be the simpliest way to do it.

GOOD LUCK.

Posted by: Joe on May 3, 2005 10:15 AM

An amazing Piece of code... I am an archaeologist and historian, and can see a great application for this in allowing public access to rare and delicate books... I even think that the book of rememberence in Edinburgh Castle could be rendered in PageFlip, and allow visitors and relatives the chance to open the book at the right page with the relatives name on it. etc.

Two questions and one request.

Has anyone solved the printing a single page issue? and also how to place an external 'tabbed' index so that the visitor can go straight to B or Chapter 4?

Also ... if you have a dynamic version and are willing to sell... count me in... You have put in some damn fine work and deserve the credit. PayPal would be the best for you.. I will definately spread the word about your code. I am creating a short Booklet of an archaeological site in Scotland... and once I can work out
a) how to print and
b) how to jump pages using a constatly visible index

I will make sure people know where the code came from!

all the best

David

Posted by: David Connolly on May 3, 2005 02:17 PM

Brilliant bit of Flash!

Am I being really dumb, though, because I can't find where in the FLA file I edit the pages to put my own contents...

Help!

Posted by: Andrew on May 3, 2005 03:30 PM

has the "reload"-bug still not been fixed in the v2.13???

:( doesn't seem so

Posted by: faziatic on May 3, 2005 03:56 PM

Wow, this Flash-movie is brilliant! Thanks for sharing it with us Macc!

Posted by: Filip on May 3, 2005 09:13 PM

This is an incredible piece of work. Just have a problem though. I've been using this engine to make a comic, but when I load it as an external swf, the buttons from pages underneath can be pressed. This happens even with the original pageflip_v213.swf. Can someone help me out with this? Can't figure it out, specially because I know very little actionscript. Thanks.

Posted by: Jorge Lopez on May 3, 2005 10:16 PM

Jorge: one possible way to avoid this effect is to have an invisible button with the size of the page as the bottom layer of each page. Give it an instance name like "cover_btn". Then add the line cover_btn.useHandCursor=false; as a frame script to that page.

Posted by: Mario Klingemann on May 3, 2005 10:38 PM

Mario Klingemann: Thanks for the fast response. I tried your advice, but now the button doesn't work when the page containing it is being viewed. Well, in fact, I placed the "cover_btn" on top of the button I want working. Placing it underneath did nothing.

I would really appreciate it if you could try it with the pageflip swf file. Make a container, and load the pageflip on level 1. You'll notice that the button on page 3 can be pressed through the first page. It's supposed to work only when the third page is visible. Thanks again.

Posted by: Jorge Lopez on May 4, 2005 12:53 AM

Putting it on top will of course not work as it will cover all the buttons in the same page, too.

Sorry, but as I'm only using my own pageflip engine I cannot say anything about Macc's. I wonder why it doesn't work like this though.

Posted by: Mario Klingemann on May 4, 2005 12:59 AM

Man, I missed the point of the button!! I was placing it only under the button of the third page. Haha! At the bottom layer of the first page (and EVERY page) works, of course. Thanks Klingemann, hope to be useful for you in the future.

Posted by: Jorge Lopez on May 4, 2005 01:21 AM

guys, pls help!!!!! i found this incredible free source and played with it...but for about 3 weeks now i'm trying to modify something and my skills as actinscript programer are low...
-- i made tabs on the pages but at page 6 first pages reset and tabs dissapear with them...i looked in the code, tried some changes and didn't make it...what's the catch? how can i stop the rest of the pages reseting????
plssss help me , i need it for a project and the deadline is coming..i figured out the rest but this tabs thing is bugging me
thx alot

Posted by: sorin on May 5, 2005 09:42 PM

never mind, i got it on my own
but i have one last problem left: how to make covers always visible?? cuz in my movie i made the covers bigger than the pages and i want them to be visible at all times

Posted by: sorin on May 6, 2005 12:00 AM

Hi Macc,

The pageflip in the site "templatemonster.com" as you posted before, most of their scripts is different from your scripts, don't ask me how can I do it cause many way can decompiler a swf file from internet and not mean I will steal the code, I used to respect people hard work.

I just wonder...there is a way to use XML & .as together for your pageflip in Flash MX 2004 pro. that may help you to get more protection if you want sell it online. And I would like to buy it.

Now, I am trying to develop more for it too, but I have a problem on my tabs with left & right arrows, the problem is when I reach the last page of the book by clicking the arrow, the tabs not work anymore, I dont have any solution after I tried many ways to solve it... can you help me out of it?

Many many thankssssssssss!!!!!!!! God bless you!

Posted by: Tine on May 6, 2005 10:09 AM

This is an excellent script. Well done Macc. I've noticed that people are running into the same "flicker/redraw" issue with loading in dynamic content. Has anyone come up with a solution to this problem? I'm guessing it's more of a problem with the flash player rather than the script itself.

Posted by: marcus on May 9, 2005 01:58 AM

I wanna get Pageflip dynamic version

Help me!!! plz

Posted by: ... on May 9, 2005 07:17 AM

Hi,

this source code is awesome...!

but i would like to add a menu with the pages' numbers...so if u dont feel like grabbing the pages w ur mouse you can click on the button and go to the page wanted...for instance

button1--->flips to page 1
button5--->autoflip until page 5

is it possible to add this?

Thanks

Posted by: Ivan Torres on May 10, 2005 03:25 PM

hey all - great script macc!!! I was just wondering... im working with the script on a 468x60 banner and the page flip is a lot smaller... its still working great, but id like to be able to make it so you can only tear off the page, and not turn the page... this is acting more like a sticky note that should only be torn off... any suggestions?

thanks

Posted by: adam Paul on May 10, 2005 09:10 PM

Hi, all,
Regarding the flicker problem: I found out what determines it: it appears only when embedding the SWF with transparency option. So, to avoid this unpleasant flicker, simply pubblish without transparency... Here's my personal use of this great piece of AS: http://www.hbfx.com/french1915/index.html

Posted by: Eros Nicolau on May 10, 2005 10:44 PM

Anybody, solved the sound issue, How to add a flipping sound to the page?

Posted by: Ali on May 12, 2005 05:01 AM

Why not to put online a demo so we the newcomers to flash develpment can manage to integrate the pages and not die doing it

please some tuto if exist

please help us here

thanks in advance

some info tips or guide to do it

please

Posted by: Alexis Valera on May 13, 2005 06:14 AM

Hi,

Great code by the way!

I've got a movie clip with video in it on page 3 of my book. The problem is that I can't get the movie to play or pause when you press the respective buttons.

I put this code on the movie clip originally to stop it from playing as soon as the page was flipped:

onClipEvent(load){
this.stop();
}

I think maybe I haven't got the correct path root. Can anyone help please.

Here's my code for the buttons:
on(release){
_root.page3.vid.play();

}


Also, could someone help me with the code for stopping animations/video from playing from the start when the mouse hovers over the page edges.

pokie@talk21.com

Many Thanks

Robbie

Posted by: robbie on May 15, 2005 05:34 PM

Hello
i've just found your page, it's very intersting, congratulations
i would like to put an html page in each page of this book. Is it possible ?
I only know javascript language and not at all flash, unfortunately
thanks for your help and reply
@+

Posted by: lato on May 16, 2005 03:03 PM

Hi there,

Could somebody please help. Am on a tight deadline. Trying to stop the animations from resetting when the mouse hovers over the page corners. Any suggestions please, anything appreciated.

Many thanks

Robbie

Posted by: robbie on May 16, 2005 06:12 PM

Hi
Thanks for the great code,
I'd like to point out that it will be much easier if you declare the page array like this rather then ea page separate.

pageOrder = new Array();
for (i=0; i<=(maxpage+1); i++) { // +1 for the last right facing page which is blank
pageOrder.splice(i,0,"page"+i);
trace (i);
}
Then the tear of page all declared as false
pageCanTear = new Array(); //pages TEAROFF function!

for (i=0; i<=(maxpage+1); i++) {
pageCanTear.splice(i,0,"false"); //none of the pages use the TEAROFF function
trace (i);
}

If you want to have pages available with the tear off function you can setup an array that will hold the numbers of the pages that you want to tear and use a loop like this

pgTear = new Array(); you can declare the pages here ( 1, 5, 55...)

for (i=0; i<=pgTear.length; i++) {
pageCanTear.splice( pgTear[i],1,"true");
//inserts "true" in the pages defined in the pgTear Array.
trace (i);
}

pageCanTear.splice(pgTear-1,1,"true");


Could someone point me to a reference on how to do the Actionscript for creating the Movie Clips and their content with Actionscript rather then doing it manually?
something like a loop to
start from Page0, make that one blank and then all the pages up to maxpage, insert a Jpeg image with name "PageName"+"i"+".jpg"
and position it on coordinates 0.0
and then on maxpage + 1 add an empty Movie clip with name "Page" + (maxpage+1).

Also if some one can post a ample code for dynamic load of the Movie Clips, I'd appreciate a lot, as the file gets rather big with 100+ pages in it.

Thanks
Nikola

Posted by: Nikola on May 17, 2005 06:57 PM

just ignore the line above it was a mistake :-)
pageCanTear.splice(pgTear-1,1,"true");

Posted by: Nikola on May 17, 2005 06:59 PM

You are my cheef,it is very very good,you are the best,this is perfect application.You are the best

Posted by: Hakan Aktaş on May 18, 2005 10:29 AM

The following are some of my favorite examples that have been executed with this script. There's one more out there I can't find anymore but if you have some professional-quality favorites, please post:

http://www.systemminds.com/fxindex/brochure.html
http://www.ds03.de/
http://www.smalltime.co.uk/ (long loading time but beautiful photos)
http://www.derotterdamsche.net/website/
http://www.itsreal.com.br/
http://www.hbfx.com/french1915/index.html

Posted by: Astralis on May 19, 2005 01:31 AM

Did anyone find out how to stop an animation or flv from reloading anytime you put your mouse over the flipping locations?

Posted by: Astralis on May 19, 2005 01:45 AM

I meant to put this in the list:

http://www.insideeonline.com/

Posted by: Astralis on May 19, 2005 05:06 AM

I added sounds to iparigrafika pageflip.

you can find the result here

http://www.triquitips.com/flash_movie_pageflip.html

Posted by: Triqui on May 19, 2005 12:06 PM

@Triqui - ever heard of something like blog netiquette? If you add a link to your page from my site, how about adding a tiny backlink in your article stating where you came across that information in the first place?

Posted by: Mario Klingemann on May 19, 2005 12:26 PM

Macc: I'm willing to buy a dynamic version of PF V2. Please contact me.

Posted by: Alek on May 19, 2005 09:49 PM

I love the script posted at the top of this page!

I am trying to create a hard cover page flip for each page, how can I change the script to do this?

I realize this will take away from the script, but this is what my wife wants.

Thanks to anyone who can help.

Posted by: David on May 19, 2005 11:21 PM

Macc: I would very much like to purchase your dynamic page flip.

Posted by: Eric on May 22, 2005 12:08 AM

Hello, first of all - great work !
But i want to use pages with size of 600wx800h. And i have the same problems... dont know where to change this or that to increase the masks (or whatever - newbie) and my english isnt really good... if anybody can explain it very easily or in german - this would be great !!! The rest of the script is working very fine ! But only larger - please !

Best greetings to all, Emanuel !!!

Posted by: Emanuel on May 24, 2005 02:45 PM

Or is it possible, to make (next version ?) from beginning an bigger size pageflip... because i think, its easier to resize it to smaller (cause of shadows and masks....
so many people (esp. in german) have problems to increase the sites, and nobody has really found a way - yes, load into another swf, but this will resize typing and photos = quality is poor. i think, a very good script like this, has the chance to go to a standard (isnt it ?), if it will be more user-friendly. Some ways to put sound on it, to select pages - they exist. but no really tutorial or codes to resize it to any height and weight you want... the last bastion of this script.... ill hope we will see this great work again... not better, cause it is, but felixible.... mfg, Emanuel

Posted by: Emanuel on May 24, 2005 06:08 PM

I know I've seen this question asked before, but I have yet
to see it answered. Does anyone know to how to jump to a certain page without having to watch the other pages flip?
Here is what I was able to do with this code
http://kylephelps.com

Posted by: kyle Phelps on May 24, 2005 09:18 PM

hie
great jobs great code
but i have a problem with the flipping book
i want to load dynamic text froma database to build dynamic library and i encoutered a problem with the fliiping effect when i turn a page the text stay in place for a moment? i think it's a problem of masking because it disappear when i have the font embedded but i want to use css and html so what is the solution?
thanks you for all the comments!
thomas

Posted by: thomas on May 26, 2005 02:00 AM

Hi macc. Nice work you've got here.
Im also interested in buying the dynamic version of your script. Contact me if you want to sell it...

Posted by: Arthur on May 26, 2005 09:18 AM

Anybody know a way to make this engine show one page at a time? Trying to figure out how to do it. Otherwise really good piece of Flash & fast too.

Posted by: sami on May 27, 2005 12:15 PM

hi all

i just updated to the v2.13 code & am now having a problem where once you open the book, the inside front cover page stays "stuck down" , even if you close the book again.

can anyone help out ? going a bit nuts trying to work out the problem .. (IANA actionscript guru) :-)

think someone above in the thread had same prob & solved it but they didnt post how they did it....

any help much appreciated..

Posted by: matt on June 1, 2005 07:14 AM

Please a ready sized version of flippage in a bigger format !!!
540 x 700 would be perfect
I read everthing but i dont know where i must change the sizes

PLEASE HELP ME !!!!!!!!!!!!!!
Greetings to my hungarian friends

Posted by: Fritz from Vienna on June 1, 2005 01:18 PM

Just tried to buy Flippingbook, but the checkout system is down at the moment.

I've been wrestling with the code for this one, but it always seems to overwrite Flash's components coding - scrollpanes won't work, neither will comboboxes. 'Cos of this, I can't add a dropdown menu that allows people to jump straight to specific pages.

Also, people need to be able to view each page as a larger image - I have the .swf's ready in another directory, but when I try and load them into the scrollpane (above the main movie) it breaks the masking and it just won't scroll. It also resizes the loaded movies in proportion to the resized nature of the scrollpane. I've been searching for answers for two days, and nothing.

So... does anyone know if Flippingbook allows other components to be used? And does it have built-in zoom and jump to page features, or will I have to add them myself?

Posted by: Mike on June 2, 2005 04:53 PM

Anyone here who actually bought the Dynamic version? Is that dynamic version without the flickering caused by the reloading of the pages?

That flipping page component on Dreamweaver Exchange is using Dynamic text so it must be possible to get it working without much trouble. I also saw that someone posted a solution somewhere...anyone else who tried that out?

I have been reading for about 3 hours now...this thread is sooo long...I've saw some amazing results posted. I just cannot understand your website MACC. Most buttons don't seem to work. I was hoping for that forum to be online, but it was dead too. Do you still support this PageFlip engine?

All the best from die Rooie

Posted by: die Rooie on June 4, 2005 06:33 PM

have sorted my page "sticking" problems, but does anyone know how to allow it to finish on an odd number page ?

i'm using an open book background image so don't want it to proceed to a back cover, but instead finish on an inside page

(ie to disable forward flipping effect once a certain page number is reached, but still permit the reader to go back)

any advice appreciated !!!

Posted by: matt on June 6, 2005 08:39 AM

hey fritz

all you need to do to change the page size is to change the actionscript on frame 5 to whatever size you want,
resize the page shadows on each page

and you're done..

Posted by: matt on June 6, 2005 08:42 AM

Fliipingbook DOES do all the stuff I wanted it to. The documentation's pretty good, too. Now I just need to figure out how to set the source XML file dynamically...

Posted by: Mike on June 7, 2005 10:17 AM

did anybody see this ? http://www.flippingbook.com/

is it part of macc's scipt or is this a rip off

Posted by: Laura g. on June 7, 2005 07:37 PM

I am working diligently on getting frame based animations to work on the pages. The _global.mcnt works fine for looping animations but I can't implement it for linear animations.

Anyone have any ideas for utilizing this counter as a means to keep the pages from resetting the animation each time?

Does anyone have any other ideas on this?

Posted by: Dolemite on June 8, 2005 03:08 PM

I GOT IT! I GOT IT!

I finally figured out how to put linear animations on the page without having them reset to fram 0 each time the cursor hovers over the edges. It's not the most elegant but it an excellent start.

First, comment out line 248
//_global.mcnt++;

If you use this variable for looping animation, this script won't work for you.

Next, set up your flash animation on the page. Mine is a simple linear animation with words building one after another on the page.

Paste this to frame 1 of the animation. I'm pasting it as-is so you'll have to change the instance names and page numbers to your own.

stop();
if (_root.ledger.page == 4) {
if (_root.ledger.getPN(4) == _root.ledger.page) {
_global.play5Banim = "true";
if (page5Banim_played != "true") {
_global.page5Banim_played = "true";
}
this.gotoAndPlay(mcnt);
} else {
delete onEnterFrame;
_global.page5Banim_played = "false";
}
}

Then the fun part. Create a new layer at the very very top and make every frame a keyframe. The easiest way to do it is highlight the whol row and press F6. Then, in every single keyframe you just created, past this code:

_global.mcnt++

Essentially what is happening is we are counting frames. Each time the playhead returns to frame 1, the mcnt variable has the stored frame number in it and will return the playhead back to the original spot.

This is working great going forward. When you flip past the page and return to it, the page is initially blank then the content pops onto the page. I'm still working on this part.

I'm not the best Actionscripter in the world, but this is what I've come up with. If anyone wants to build on it, go nuts!

Posted by: Dolemite on June 8, 2005 04:00 PM

Okay, to stop the animation from "popping" when you flip back to it, I've added this:

if (_root.ledger.page == 6) {
if (_root.ledger.getPN(6) == _root.ledger.page) {
_global.mcnt = 0;
}
}

My original script is on page 4 and this new script is in the first frame of page 6. This resets the mcnt variable to 0 so that when you flip to the previous page, the animation will play from the beginning.

Since these are globals, a unique counter variable will have to be created for each page with an animation.

Posted by: Dolemite on June 8, 2005 04:10 PM

Can someone please explain to me how to animate a page tear in flash. I need to do an animation of a car ripping through a page.

Posted by: Amber Rominger on June 10, 2005 03:14 PM

伟大的贡献精神!
您的贡献将改变世界的出版事业!

Posted by: bonny on June 11, 2005 03:21 PM

您好
我需要做一份电子书的杂志,我做了很多尝试,没有办法增加更多的页面。希望给予更多的帮助。
还需要增加控制页面自动翻页和跳转到指定页面的内容?页面内包含的动画需要翻完页面后再播放?
很是感谢您的帮助!这对我很重要。谢谢!

Posted by: bonny on June 11, 2005 03:29 PM

很是感谢,您作品的伟大!
只有增加页面和页面内包含的动画需要翻完页面后再播放的问题还没有解决。继续研究中。:)

Posted by: bonny on June 12, 2005 02:26 AM

Well - maybe someone is capable of translating bonny's request into english?

Posted by: Mario Klingemann on June 12, 2005 11:37 PM

I had a similar problem Bonny - here's how I did it - I simply took the 要翻完页的问题 and changed the 面后播放 variable to 面后再播放. If you do this throughout the whole script and then add the following line at the end:

面后再播放 面后再播放面后再播放 面后再播放 面后再

...everything should work fine.

All the best, Frisby

Posted by: Frisby on June 13, 2005 03:34 PM

How do you add the zoom feature used on this site to pageflip?

http://www.ibrochures.co.uk/nectar003/nectar003.asp

Posted by: ZZ on June 13, 2005 08:26 PM

hi....First of all Good JOb Macc........
I made a ProductCatalog using ur source code and added Navigation/ Different views on my Own.Its all done but atlast we came to know its Taking 10-15 mins to start .....This is due to its Size as all the images r in library Only.Then i Tried Shared Library.but that doesn't make too much difference.So Is there anyway to load the pages dynamically to reduce the size.Or Anything which can work to solve my problem.Anyhelp would be greatly appreciated Thanx---
Anamika

Posted by: Anamika on June 14, 2005 12:48 PM

This pageflip is really fantastic, i have just one doubt, how can i put a picture in background, i just dont like that white (or another color we can chose) backgound.

Posted by: vallis on June 14, 2005 08:36 PM

@Anamika:
It seems everybody keeps asking for Dynamic versions of this Pageflip version. Nobody has answered he got it working. MACC mentioned a long time ago there was a dynamic version but it was not optimal.

Weird enough: a dynamic version was sold for 67 Dollar somewhere online and was directly copied from MACC's code as he mentioned himself.

I think the dynamic version is not working as it should with this code and therefore nobody ever replied that he got it working.

If you really want dynamic pages you should try the (expensive) version on the Dreamweaver Exchange pages. Problem I have with this version is:
1. it's expensive
2. it does not look as good as Macc's version!

Posted by: die Rooie on June 16, 2005 11:10 AM

@vallis:
You mean the background colour of your flash movie?
I think you mean the parameter settings for the flash movie:
-----------------------------------------------
PARAM NAME=wmode VALUE=transparent

And in the EMBED tag:

wmode=transparent
-----------------------------------------------

not sure if this is what you mean though....

Posted by: die Rooie on June 16, 2005 11:20 AM

I sifited through all these comments but could not find out how to fix the FIRST PAGE FLICKER BUG. There was a comment about ignoring it with a snipit of code near the top but I could not impliment this. Anyone else have a clear fix for this problem?

Cheers

Posted by: bodom78 on June 16, 2005 02:35 PM

This is just fantastic,.... can i ask for a bit of help though...
How can i make the menu for page numbers under this can any one help me how to give page navigation some thing like http://www.prinzmyshkin.com/index.html

plzzzzzzzzzzzzzzz help me in this mail me .
Have a blessed day!

(`._.F._.)

Posted by: Misbah on June 17, 2005 07:36 AM

ڳʹö̬ıƻ˷ҳۣڳʶťµĽͻرӽűʱDz󡣼о......
ǰµⲻϳ֣ŬŬ.......һᾭעҵĽȣҵӢﲻãɻܿ˼

Posted by: bonny on June 18, 2005 02:43 AM

Disorderly code of my speech?:(

Posted by: bonny on June 18, 2005 02:44 AM

Dolemite,

You are THE MAN for solving this linear animation problem. Unfortunately I seem to be too dumb to make it work...

Forgive me, if I'm being an idiot (I'm not an action scripter): What part of your code is the instance name I need to replace? "5Banim"? "page5Banim"? "play5banim"?

And what instance is named? The page? The animation placed in the page?

THANKS!!!!!!!!!

Posted by: marc on June 20, 2005 08:44 PM

hello.
i'm a designer not a programmer but i love the look of this.

i have used flash in the past, but unfortunatley don't know much abt actionscript.

I'm trying to add pages to the book and all I've done so far is add them in the code where it says to (where it says: page1, page2,...etc. and number of pages). when I test my movie, the pages are there but are 'invisible'.

now this might sound a little 'dumb' on my part, but the only way i know how to navigate/change the pages in this book is by going to the related item in the library...i.e. to change page 1, i double click on page 1 in the library.

could some please, as simply as possible, explain where I can actually find these pages and where I can add the new ones?

I'd really appreciate it!

Posted by: al on June 21, 2005 02:20 AM

@al:
It is not in the actionscript but in the actual movie. I'm not sure because I have to tell it by head (I don't have the code here), but I think in frame 4 or 6 there is a keyframe which holds all the pages (layer is also called pages).
All pages are laying as images on top of eachother. Thus you'll only see one page. The rest is underneath that page. Again, I cannot explain precisely since I don't have the code here. But that's about it. If you still cannot find it, then I'll look for you later for a more detailed instruction :)

regards

Posted by: die Rooie on June 21, 2005 10:15 AM

thanks, die Rooie.

now i'm gunna bother you again. i still can't find them?

i went into the layer called 'pages' on scene 1 (frame 2). and it takes me to 6 layers and a mask layer? i tried clicking around but i still can't get to the pages and where i can add more?

PLEASE HELP!

Posted by: al on June 22, 2005 03:17 AM

@al:

To add more pages, you have to
1. add the page numbers to the code where it says ("page 1", "page 2" ...)
2. increase the number of the max pages = XX ( where XX is the amount of pages you have)
=== MOST IMPORTANTLY ===

3. Add more movieclips according to how much more pages u want to create ( eg. create 7 movieclips for 7 more pages)
4. Go to the Library, right click (or CTRL-Click for Mac) the newly created movieclips, then go the the "Linkage" option and enable the "export to actionscript" command. The name of the movieclip will be used as an instance name and click OK.

Posted by: mesher on June 22, 2005 10:27 AM

Hi folks. I have been trying to get my cover pages to have shadows as in http://www.prinzmyshkin.com/index.html but for some reason I cannot get them to display unless I am at those pages. By this I mean if I am on page 5 (with a book of 15 pages), the shadow of the back cover is not visible. But I can see it if I am on the last page. How can I do this?

Posted by: karson on June 22, 2005 05:41 PM

Thank You! Thank You! Thank You!

It works!

Okay. If its not too much trouble, can you explain how to either get rid of the tear off page or move it to be another page?

Also, how do I enable autoflip?

and Thank You! once again....

al

Posted by: al on June 24, 2005 03:12 AM

al, i just figured that as well, and what a relief eheheh! invisible/see through pages were definitely a pain.


Can anyone tell me how i can make page markers like on http://www.prinzmyshkin.com/index.html? I can create tabs, but they only show up if I am at most one page away!

Please help?

Posted by: bart on June 24, 2005 08:08 AM

When version 2 of the page flip first came out, shorty after a dynamic verison was released by Macc. And it works great! The fact that the dynamic verison is in demand and that Macc does not wish to part with it is his choice. I personaly feel he could make loads of money with the dynamic verison. I have used the dynamic version and I have the dynamic version. There are lots of people from this forum who email me asking for the dynaimc version. Email Macc. It is his to give out or to sell, which ever he chooses.

Posted by: eric on June 24, 2005 04:09 PM

never mind. i came up with a solution for the page markers, nifty!

Posted by: bart on June 26, 2005 09:29 PM

I have a project due at the end of the day tomorrow and I'm using this page flip for it. Its going pretty good EXCEPT I need to change the page size...I just can't figure out how to go about doing that?

PLEASE HELP!

(a step by step explaination would be great b/c as I said b4 I'm a designer, not a programmer)

I'd really appreciate it...

Thanks!

Posted by: al on June 27, 2005 04:14 AM

This is the best page flip code I've ever seen. Thank you for making this public and share-able. It really helps us less mathematically inclined flash people. Great work!

Posted by: Johnny on June 27, 2005 11:33 PM

Well! Let me start by saying... GREAT CODE!!!...
now... as many before i'm having "two" problems...
i'm trying to turn your code into a dynamic one, so i created empty movieClips that load external SWFs, and it works... but ...

1 - the blinking problem, suffered and discribed by many above...

2 - wen i turn the cover page back (close the book), the back part of the cover stays in the stage, and it also happens wen i finnish the book and close the back cover...(this was also discribed above)

Can anyone help me pleeeeeeeease!!!!!...

Love, peace and prosperity you all!!!!!

Posted by: olivio on June 28, 2005 06:35 PM

Can anyone resolve the flicker effect caused by loading the images for the pages dymanically?!!!!

Posted by: Tara on June 30, 2005 10:11 PM

@Tara, I'm afraid you'll have to rewrite the whole code to do that. As you might have read this question has been asked many times before but nobody seemed to be able/capable to make it happen. All versions used are non-dynamic versions.

Eric seems to have a dynamic version. I have no idea if that version can do what the non-dynamic version does. I have also no idea if the flicker effect is present in his version. Eric or Macc, if anyone of you is reading this, please explain since it cannot be found in this complete thread.

Posted by: die Rooie on July 1, 2005 08:51 AM

Thanks die Rooie, I actucally got the answer I needed from the man himself, Macc. And this answer was so hard to find on this page, and his site, so I am going to post his response to my email, in plain english...

Hi!

Sorry, but the opensource version of the pageflip don't support external content loading!

Best regards,
Macc

...so the answer to my question is that, you can NOT resolve the flicker effect caused by loading the images for the pages dynmanically!
Best to All,
Tara

Posted by: Tara on July 1, 2005 05:29 PM

The dynamic version does not flicker. As a user, when you use the static version or the dynamic version you have no idea which one it is. The pages load, it does not flicker in the static or in the dynamic version. I have no idea why Macc does not market his dynamic version. If I was him I would have a entire site dedicated to the page flip, forums and all. This is a real brilliant pice of work.

Posted by: Eric on July 2, 2005 02:05 AM

Hi guys: Do you saw this example:

http://www.systemminds.com/lxdirect/

here we put animation - video and a shopping cart inside the page fliping

Posted by: gustavo on July 4, 2005 12:53 AM

and here the data is loaded from external xml source

http://www.lxdirect-ebrochures.co.uk/offline/p1/cm/noff/


Posted by: gustavo on July 4, 2005 01:05 AM

That's some very very nice addition to the current existing links gustavo. Are you using the dynamic version or did you rebuildparts of the actionscript Macc wrote?

I mean that external xml source is something many people will be interested in.

Posted by: die Rooie on July 5, 2005 12:27 AM

Hi, I like so much your page flip,
but I have a question for you

Is possible to load page by a
loadMovie

for example: I ave o1.jpg 02.jpg ecc....

I want know can I load it in page1 page2 ecc... by loadMovie???

Thank you for attention!!!!

Posted by: Stefano on July 5, 2005 12:20 PM

Stefano,
what you want is to load your pictures dynamiccaly. You need the dynamic version for that. The normal (static) version you can download from Macc's website can load things dynamic, but you'll get a very anoying flickering in your pages, so I advice not to use it for dynamic data.

Posted by: die Rooie on July 5, 2005 04:14 PM

I did rebuild some parts of the code, but to kee p the animations running while the page fliping. The xml stuff only affects the products displayed info.

Posted by: gustavo on July 5, 2005 10:21 PM

Hi Can anyone tell me how to get hold of the dynamic version? I desperatly need to be able to laod in images/video etc form external sources and stop move clips flickering when the pages are turned:) :)

Anyone give me any pointers. is ther dynamic version aviable for free or at a price? :)

Posted by: adrian on July 6, 2005 11:10 PM

Hi,

I also need the dynamic version. Or does anyone has any tips / trics how to not reset the animation when hover the specific area's?

Thanks in advance

Very nice job btw ;)
Genius

Posted by: genius on July 7, 2005 12:57 AM

how do i make animation on pages not going back to fram 1 when i flip the pages? is there a way to turn of this?

let say i have a animation called "yeti", inside page 3? what can i do to make my yeti movieclip play from beginning to end? even if i touch the pageflip?

thanks so long!

Posted by: YETI on July 8, 2005 02:30 AM

I also want to where I can get tips or source info of dynamic version of Macc's "PageFilp".

Posted by: smooth on July 8, 2005 04:51 AM

I also want to know where I can get tips or source info of dynamic version of Macc's "PageFilp".

Posted by: smooth on July 8, 2005 04:52 AM

I need help regarding Zooming pages of a catalog.
As it is done in www.Richfx.com
Any help would be greatly appreciated.

Cheers-
Anamika

Posted by: Anamika on July 8, 2005 07:38 AM

anyone relpy... i can not figure it out...

Posted by: yeti on July 8, 2005 03:27 PM

Hello everybody,

Sounds like this is long overdue...

I've created a dynamic version of Macc's page flip and posted the source code here:

http://www.76design.com/shiftcontrol/index.php?&page_id=13&article_id=2

Enjoy!
Steve

Posted by: Steve on July 8, 2005 06:08 PM

hi steve, is this the only way to control animation in side the pages?

old: how do i make animation on pages not going back to frame 1 when i flip the pages? is there a way to turn of this?

thanks

Posted by: yeti on July 8, 2005 07:03 PM

The way we used to keep running the animations inside the pages when the fliping is done is simply to control the _currentFrame property of the animation using global variables. The free source code have an example of this. :.)

Posted by: gustavo on July 11, 2005 12:03 AM

gustavo,
can you explain? can u give me an example?
thanks

Posted by: yeti on July 11, 2005 02:53 AM

hi die Rooie..

Thanx for ur reply but...67 dollar is bit expensive .Is there anyother to get it done.Or any other help.

thanx--

Anamika

Posted by: Anamika on July 12, 2005 02:31 PM

hi die Rooie..

Thanx for ur reply but...67 dollar is bit expensive .Is there anyother way to get it done.Or any other help.

thanx--

Anamika

Posted by: Anamika on July 12, 2005 02:31 PM

Can anyone tell me how i can make page markers like on http://www.prinzmyshkin.com/index.html? I can create tabs, but they only show up if I am at most one page away!

Please help?

Can you tell us your solution bart?

Posted by: Hilarion on July 13, 2005 11:39 AM

Anamika,

I would write to Macc about this problem. Maybe he can provide you with a dynamic version.
I have not tried Steve's version yet. I know it loads pages externally, but not sure if it can load text files or database content on the fly as well while flipping the pages.
Steve do you have an answer for Anamika?

Posted by: die Rooie on July 13, 2005 12:01 PM

With "I would write to Macc" I meant of course: "If I were you I would write to Macc".....

Posted by: die Rooie on July 13, 2005 01:49 PM

Can anyone tell me how can make pagemarkers like http://www.prinzmyshkin.com/index.html? ?
Look on top of the book ( i.e. restaurant, events, ...)

My buttons only show up if I am at most one page away!

Pls give me a reference

thx

Posted by: Hilarion on July 13, 2005 06:57 PM

Hilarion,

your question has been asked before. No answer was given directly but if you look above, you'll see that Bart found a solution. Now it's your turn...

Posted by: die Rooie on July 14, 2005 01:53 PM

Hi everybody..

Now, I am able to load the pages dynamically but the problem is that ,as i click on any of the 4 corner of the page to turn, it flicker first then turn.So could anybody tell me the reason why it flickers ?Its partially done, I need ur help make it done.Macc will u please tell me the reason...

Thanx

Anamika

Posted by: Anamika on July 15, 2005 11:05 AM

I really need to encoporate a zoom function, all im looking for is to hover and click over a page then zoom in and drag the page around so you can see the text?

Any ideas anyone//

Posted by: Dan on July 15, 2005 12:42 PM

Pls any help on the tab/button show on problem.....

Posted by: Hilarion on July 15, 2005 07:32 PM

To the 3 above threads:
@Anamika: that's the problem with this version, it reloads everytime; therefore it flickers. That's why you might need Macc's dynamic version if he still supports it.

@Dan: Question has been asked before but nobody answered which means nobody knows how to do it?

@Hilarion: please read instead of asking the same question 3 times or wait 'till someone replies within this thread if you don't feel like contacting someone!

Posted by: die Rooie on July 16, 2005 02:16 AM

Can't contacting someone because the e-mail adress is wrong...

Posted by: Hilarion on July 16, 2005 11:05 AM

@Hilarion. Fair enough. I only found out which company made the tabs for that website; maybe you can contact them instead?

http://www.revorm.com
Their email address in on their page too. You never know ;)

Posted by: die Rooie on July 16, 2005 04:00 PM

An excellent piece of work !!
Have a problem though can any one kindly tell me how can I change the book to start from the opposite side. so that the end page is the first and the first page is the last

Posted by: Warid on August 23, 2005 01:34 PM

coming soon!
I have just finished working on a version that loads content dynamically (no blinking!!!), ca-shes it, and maintains the original cpu use.

there is a bug with the tear function, though, when I publish as flash 7 actionscript 2.

did anyone solve this bug

thanks

Posted by: avi on August 23, 2005 04:47 PM

hi avi,

put the source in the forum, so that someone will solve it

gbi

Posted by: GBI on August 25, 2005 06:46 AM

Hi! A site will be builded for the pageflip, and a new version 2.2 is on the road:) Anyone who need dyn PF, just contact me.

Posted by: Macc on August 29, 2005 02:17 PM

This is incredible! Is it possible to add a drop shadow?

I'm trying to add a feathered drop shadow so the book appears to be on a surface... The only trouble is getting it to work when the first page is flipped open and having it revealed dynamically.

Anyone take a shot at that?

Posted by: FlashSucker on August 29, 2005 10:39 PM

Macc, I need the dyn PF, how do I contact you?

Posted by: Eric on August 30, 2005 09:58 PM

How can I insert a datagrid component or even a simple button component in flash correctly, ie, visibly?

Posted by: Cliburn Solano on August 31, 2005 07:19 AM

50$ to whoever can solve the blinking problem first!
Contact me asap! mike (at) theablefew.com

Posted by: Mike on August 31, 2005 07:48 AM

Hi everybody,

Scuse me for my bad english, i'm a french guy ...
First of all, I want to say that it's a great work you have done!!

Yeah, I had the following problem. I have an animation on a page and each time my mouse goes on a corner, it restarted it.
The solution I find out is to create a new global variable like : _global.played = 0; just before the _global.mcnt = 0; on frame 5
Then put the folowing code in the first frame of your animation:
if (_global.played != 0) {
gotoAndStop(500);
}

and in the last frame of your animation:
_global.played++;
stop();

This is the easiest way I found. But I'm just a newbie in actionscript.

Thank

Posted by: Spawnblade on September 2, 2005 04:34 PM

I'm finishing now a site based in this great pageflip script and it has more than 250 pages. Everything is dynamically loading here.

First I got a lot of problems with the way pageflip makes the pageturn effect, because it was loading all the stuff 3 times.

You can check test page here http://www.proesga.com/libro.html

About stopping animation within pages, I made a function for every page which is just going to null or delete when it run once.

Posted by: gas on September 5, 2005 01:17 PM

this is a real masterpiece, thanks a lot for sharing

Posted by: muddlehead on September 8, 2005 02:49 PM

here's 1 i made earlyer

http://www.nbd-media.co.uk/kaare/marginz-v2/brochure.htm

Posted by: zz on September 8, 2005 08:09 PM

I'm having troubles with the preloading feature it is taking a long time to intialize the whole thing. Any suggestions

Posted by: Chris Heazell on September 10, 2005 07:46 PM

hey zz, the one u made is exactly what i need, with the zoom function. Is it possible that you email me the source fla?

Posted by: wonka on September 10, 2005 09:44 PM

Hi wonka, what bit do you need help with, basically the zoom pages load up as separate movies on layer 1 with the brochure on layer 0 so when u click back it stays on the same page you were viewing

Posted by: zz on September 12, 2005 07:29 PM

hi,

I have an issue with the pages attaching/removing every time I rollover the corners.
Basically I modified it so I have 10 pages which should be always be present on the stage.
All my pages have to be attached up front and not every time I rollover.

Any sugestions??

sub

Posted by: sub on September 13, 2005 12:17 PM

Has the problem with animations resetting back to from one when the page is turned been fixed.

I've tried one of the soloutions but it gave really weird results. Is there a more stable fix of code snippet to determine the frame number and use this as the graphic when the poage begins to turn?

Posted by: treacle on September 14, 2005 07:34 AM

Congratulations an excellent work!!
Just one question... I dont understand this part:
removeML(); REMOVES THE MOUSE LISTENER!!!!

where do i have to put this function on the sript??

Do i need this function if i have more than 1 Flip page in the same site or i need to include ever this function in the sript?

Posted by: Artoo on September 14, 2005 06:37 PM

I found the best code around, however it is not free. How do they zoom into the text like that? www.ipagez.com/main.php

Posted by: Koop on September 14, 2005 06:57 PM

My god !!!!!!

Everything is fantastic, realistic.......

Hat's off for the developer

Posted by: sameer on September 16, 2005 06:37 PM

Hi guys, I want to add a button link at the bottom of the page(outside of the page spreads). But I don't want it to show on the front and back cover(first and last page). Can anyone tell me how I can do that? I'm pretty new to flash. I tried to put it on indvidual pages but it flips along with the page. Does it require actionscripting of some sort?
Below is the link to the project I'm working on.
Any advice or help is appreciated!

http://www.gjdemo.com/citrin_outline_short.html

Posted by: designer on September 16, 2005 07:37 PM

THANK YOU! Yours tips is very veru precious!
kisses

Posted by: Lele on September 18, 2005 03:22 PM

Hi All,

I have another problem maybe no one tried before...

I make some buttons on 2 pages connected (page2 & 3) with a close btn, so when I click on buttons will load external .swf upper the 2 pages, here is the problem:

*** The buttons under the external .swf still clickable... how can I disable those buttons until close the external .swf?

I'd tried to make a background on the external swf to cover the rest of the book, but no luck... tried put it on "_level10000" but it not work too... hope you understand what I am saying, sorry for my english.

Anyone have idea for it? Many Thanks.

TINE

Posted by: TINE on September 20, 2005 03:55 PM

Hi I am loading the flip book into an empty movie clip. However if i reload again, the book does not flip.

I don't understand
function removeML() {Mouse.removeListener(mousecontroll);
}

Where should I put ..is this the actual code
which I should use?

Can anyone pls kindly enlighten me, a novice?

Big thanks in advance!

Posted by: tom on September 21, 2005 01:02 PM

hi,
my magazine is 40+ pages and i've been able to get everything to work using steve's dynamic version of Macc's source file.

One major problem is it takes too long for the pages to load. Is there any way to load the pages when the user goes to them; or even allow the pages to continue loading in the background after the first couple of pages?

trying to duplicate gas' magazine load-time @ http://www.proesga.com/libro.html

my site is here: http://annansi.com/cityfeet/nycoct05.html

Thanks all.

PS. if anyone needs to see the fla email me

Posted by: nappy on September 21, 2005 05:25 PM

Hi nappy, you dont need to load all the stuff at the begining.
Maybe you could try showing your book when a few pages are loaded, then do the rest.
I included a function at every page, which is called just once when user ends pageturn. Then null.
Hope this helps.
A bit more elegant way would require using Shared Libraries, but I'm too lazy to this knighmare thing.

One advice: don't try to duplicate pages and attaching anything later. It doesn't work.

Good luck.

Posted by: gas on September 22, 2005 01:28 AM

Hello, all.

Could someone please translate this into something resembling english (not an action-scriptor, but a lowly designer).

Quotes are mine, by the way.

"call the removeML(); function, before you unload the pageflip MC!
(removeML is on the root of the pageflip script)"

This was the kindly advice provided to me by Macc to remedy my problem, which is this:

The book works great the first time through, but then the pages get 'stuck' when you try to view again after visiting another link on the site.

I need a simple explanation for a non-scripter.

Please and thank you.

Charlyhorse


Posted by: CharlyHorse on September 24, 2005 01:36 AM

has anybody got flippingbook to work with buttons taking you to specified pages?

Posted by: marc on September 26, 2005 03:43 AM

Hi Guys
Awesome presentation!
I have run into a problem -

If i have buttons that link to web pages on page 7, for example, and turn to Page 8, the links are clickable from page 8 too!

Any ideas on how to fix this? What do I need to do?

Posted by: BooGiE_MaN on September 28, 2005 03:24 AM

Hi Guys
If you needed to put buttons in your presentation, you may have noticed that they are active on the previous screen where they are not supposed to be!

Here is the solution that I figured out:

Let's say your working on the buttons on Page 6 (an even numbered page)Got to the "Actions" layer, right-click on the first frame and choose actions.:

trace("page6 reset");
f (_root.page != _root.getPN(6) && _root.page+2 != _root.getPN(6)) {
bedfellows._visible = false;
sunwise._visible = false;
d2d._visible = false;
fogey._visible = false;
}

Let's say youre working on the buttons for Page 7 (an odd numbered page). Got to the "Actions" layer, right-click on the first frame and choose actions.

trace("page7 reset");
if (_root.page != _root.getPN(6) && _root.page+1 != _root.getPN(7)) {
buttonsInstanceName._visible = false;
}

You will notice that when paging back or forth, the buttons will still not be visible. My only solution to this is to create Graphic Symbols of the buttons and place them behind the relevant buttons.

If anyone has figured out an easier way to do all of this please let me know.
Thanks & enjoy

Posted by: BooGiE_MaN on September 29, 2005 07:58 PM

Anybody has tried adding InputText field to a page? I tried but failed. Can any one show me the correct way?

Posted by: Eddie on September 30, 2005 09:28 AM

Hi gas,

you say you included a line in the script to enable the book to begin working after a few pages have been loaded and that the remaining pages then load in the background - that's exactly what I need to save loading time.

May I ask how you achieved it? I'd be more than grateful for any help,

thanks, Jimbo

Posted by: Jimbo on September 30, 2005 04:38 PM

Hello!

Thanks a lot for the pageflip. Great Job! But anyhow, How to produce semitransparent pages to it, so that you can see the next page through? And as trying to make an oldfashioned photoalbum, would it be possible to make every other page hard and the page in between soft?

Meanwhile ill try to work on it myself but any urgent help whould be great. Thanks again!

Posted by: Kristiine on October 3, 2005 12:34 PM

Hello,
Has anyone been able to include a zoom/magnify/enlarge feature for the page flip?? Only thing I can think of is to instruct users to right click the swf file in the browser and select zoom in. Is there a function in Flash that will do this in a button or is it just a plug-in thing?

Posted by: Jon on October 3, 2005 11:09 PM

Look @ this cool page: http://www.theresamodel.com

Posted by: hilarion on October 4, 2005 11:40 AM

Thanks, hilarion. The page http://www.theresamodel.com is really cool.

Actually I want to add a guestbook page on my online wedding album. Seems it is only possible to add the guestbook at the last page. Can anyone teach me how to add a fixed last page as shown in http://www.theresamodel.com . I am a newbie in flash. Thx alot for your help.

Posted by: Eddie on October 5, 2005 05:28 AM

it's a very good fla~
thank you so much~~ ^O^

Posted by: sunmun on October 5, 2005 07:44 AM

hi,

i'm trying to use the flip page script, and everything seems to work, except the loading of pages ...
it is very long ( i have 60 pages in 390px x 570px)
and it loads in 1 minute and more on DSL (1024 kbps )

i'm using the sources of Steve found at http://www.76design.com/shiftcontrol/index.php?&page_id=13&article_id=2
with xml loading of pages....

is there someone who has incountered the same problem , and is there a solution ?

thanks ...

Pascall

Posted by: pascall on October 5, 2005 02:18 PM

Ok fellas I am new but quick to flash, I saw this page and need to very urgently for a client. I read through the action script but it was very unclear. Can somone please volunteer to give me some step-by-steps on how to add pages and images to those pages?

I learn VERY fast so it shouldnt be bad.


thanks,


John

Posted by: John on October 5, 2005 08:07 PM

Hi.
I also tried to use the dynamic page flipping of Steve, but I should make some silly error, because I can't show it on web (only in player).
Pascall, can you help me?

Bye

Posted by: kiril on October 7, 2005 03:18 AM

Damn, this script is realy awsome. Great work Macc.
But Im also looking for a zoom function in it like in the site Koop posted --> www.ipagez.com/main.php
If anyone can help me with it feel free to contact me :)

Posted by: Kevin on October 7, 2005 10:31 AM

How can I make book align to the TOP LEFT corner of the window?
Thanks!

Posted by: Lena on October 11, 2005 02:49 AM

My friend next to me answered the question I've seen 100 times here. In order to use removeML() you have to move the function from frame8 to frame 9. It didn't specify that in the code. Then after; if you've loaded pageflip into a movieclip titled "your_mc", you can call it by your_mc.removeML();

Don't thank me, thank my friend.

Posted by: Joel Caballero on October 13, 2005 02:08 AM

I have downloaded the flipping page .fla zip file. However, I think I need some help building my catalog of photos. Does anyone out there do side jobs? (for $)

Posted by: nelly on October 14, 2005 05:48 AM

I would imagine that most people here would do side jobs for money. I know I sure do!

Posted by: Eric on October 14, 2005 05:34 PM

Nelly.

I'll put your book together. Depending on how many pictures you got, and what kind of look you're going for, I've got some time next month. Email and we can discuss $$$

Here's a really basic book of portraits I did with pageflip for a
client of mine.

www.cschafferphotography.com

Posted by: CharlyHorse on October 14, 2005 09:54 PM

Great job guys,

I'm using Steve's tweaked version to allow dynamic images to be used, I am however experiencing problems writing an onMouseDown event.

I'm loading thumbnails onto the page, and I want the ability to be able to click each one then the movie to go to another frame. How could I incorporate this functionality?

Cheers.

Posted by: Mike on October 17, 2005 05:14 PM

very nice & good Excelent, now how much? i want to know
please send the price.

alfredo

Posted by: alfredo marquez on October 18, 2005 05:29 AM

Hello ! Your flip book is amazing and i'm using it on my site.
but i've got the same problem than charly horse,
when i load the book it works but only one time,
i dont know how and were to use the fonction :

function removeML() {
Mouse.removeListener(mousecontroll);
}

can somebody help us please !? ;)
(in very simple english, i'm french)
thank you.

Posted by: oliv on October 19, 2005 03:44 AM

Is this a dead Q/A?

Posted by: Mike on October 19, 2005 10:51 AM

Does anyone know if it's possible to do a double-flip book?
I.e. a 'cover' is split in two. When 'clicked' to open, one page opens to the left, and another to the right.
Anyone have any clues on how to get this working?
Thanks!

Posted by: DSG on October 19, 2005 10:33 PM

A little contribution to BooGiE_MaN's post regarding buttons on previous and next page. His technique works like a charm but I would suggest a little change. Using

buttonInstanceName.enabled = false

instead of

buttonInstanceName._visible = false

would let the buttons remain visible while forbiding the user to click on it (and keep the cursor from changing to an hand).

Hope it helps anybody...

Posted by: Ekred on October 21, 2005 03:40 PM

Hi this is wicked!!! nice stuff..but has anyone noticed when you click a corner to go to the next page, it doesnt always turn using the same corner? Example sometimes when i click the bottom corner the page will start to turn from the TOP corner and vice-versa..is there a quick way to make it so it turns only from the corner clicked? Thanks guys and macc this is a sweeeeeeet piece of coding!! cheers

Posted by: thedude on October 22, 2005 10:10 PM

First off, Im a noob.
second, how do i make a book?
Is there a tutorial?

Posted by: AJB2K3 on October 23, 2005 04:52 PM

First of all, I'd like to be the 10,000 person to congratulate for the amazing work you've done! And mostly, thanks for sharing it with us all!!!
Now,I don't have any problems in re-sizing the book...well, it took me a while to find it, but then it was really simple.

Something it seems I can't find the variable or a solution to it is the resizing of the actual swf document. If I make from the normal Property window the size of the doc the same as the size of the opened book, when I view it from the swf it still leaves some space horizontally and vertically. I want the book to go edge to edge of the swf, with no background showing.Can anybody tell me how to do it, please?

Posted by: fraulicia on October 28, 2005 02:44 AM

First of all, I'd like to be the 10,000 person to congratulate for the amazing work you've done! And mostly, thanks for sharing it with us all!!!
Now,I don't have any problems in re-sizing the book...well, it took me a while to find it, but then it was really simple.

Something it seems I can't find the variable or a solution to it is the resizing of the actual swf document. If I make from the normal Property window the size of the doc the same as the size of the opened book, when I view it from the swf it still leaves some space horizontally and vertically. I want the book to go edge to edge of the swf, with no background showing.Can anybody tell me how to do it, please?

Posted by: fraulicia on October 28, 2005 02:46 AM

Sorry, somehow it posted the comment twice....
the problem seems to be the alignment of the book within the document. I just tried with a 800x600, 700x400 and it cuts off the bottom part of the book, and 1024x768 aligns it towards the left.
Please, please, please....HELP ME WITH IT!!!!!!

Thanks :-)

Posted by: fraulicia on October 28, 2005 03:20 AM

Does anyone know how to flip to a specific page using an external html link? I'm not much of a coder but I can figure it out if pointed in the right direction.

Posted by: shatta on November 1, 2005 10:28 PM

Thx and congratz that amazing job macc :)

I know some people asked before... without answers. How can i gotoAndStop to the frame 2 of the page 5 from a button at page 4? Which path? Its possible?

i try this as a noob im:
_root.X.gotoAndStop(2)

where X is the instace name of page 5.

Nothing happens :..( why!!!!

Thx

Posted by: drum on November 8, 2005 07:23 PM

In IE, if you drag the page over to turn it and release it outside of the browser window (or the Flash movie's boundaries), the page remains stuck to your cursor instead of flipping. Firefox works fine, but I'm designing for 90% of the world right now.

Anyone came across this or know of any fixes?

Thx.

Posted by: Curtis on November 8, 2005 10:06 PM

hi Gas,

can you post the dynamic pageflip fla in the forum

Posted by: GBI on November 14, 2005 06:26 AM

Hee, very nice work!

I'm working with the pageflip and it's such a great piece of code ;)

But I've got a question and I hope some of you can answer it..

what do I have to change to disable the 'drag'-function, so that you can only click to turn the pages?

Thanx!

Posted by: Eliane on November 14, 2005 10:25 AM

pls. give me some advice for autoflip thank lots

Posted by: alpesh on November 17, 2005 08:37 AM

Hi,
first of all big up for the code!

removeML();

it DOES work just make sure it is called from within the pageflip file you loaded, and BEFORE it is unloaded.

in all of my differents pageflip sfws wich are all loaded onto level1 of my base.swf (one at a time) I have a button on the main frame wich does:

on(release){
removeML();
play();
}

and on the next frame there is

unloadMovie(this);

now everytime i load another swf, No More troubles with nonflipping pages.

jasper

Posted by: jasper on November 18, 2005 10:22 AM

woa! nice work, indeed.

Posted by: picturapoesis on November 18, 2005 04:57 PM

Heyp!

Can anyone help me forward here please. Don't know the code that well myself. I need the book to open automatically when the page loads. In Macc's code you can set the page from which it is open from the start but i'd like it to be closed in the begginning and then open itself.

Then again:seen several questions about havin shadows to the book or tags, but no answers. I'd also want the covers be a bit larger than the pages and need them to show when the book is open.

And one more. This may be a stupid one. how can i have a jpg. or a gif as a background of the swf.

Big Thanks

Posted by: kristiine on November 22, 2005 11:19 AM

PLEASE HELP....
I am trying to have a scroll bar working on a page. That works OK, but when I flip the page, the contents of the dynamic text appears on the previous page when I turn, slowly disappearing out of sync with the page turn. Can anyone plase help me create a scrolling text page that flips correctly.

Many thanks in advance.

Mark

Posted by: Mark on November 23, 2005 05:30 AM

PLEASE HELP....
I am trying to have a scroll bar working on a page. That works OK, but when I flip the page, the contents of the dynamic text appears on the previous page when I turn, slowly disappearing out of sync with the page turn. Can anyone plase help me create a scrolling text page that flips correctly.

Many thanks in advance.

Mark

Posted by: Mark on November 23, 2005 05:31 AM

autoflip:-

On (release)
{
_root.gotoPage(number of page);

}

Posted by: mayang on November 23, 2005 09:12 AM

Again i've seen quite many to ask how to stop the buttons to show on the next page also. Please help. Thank you.

Posted by: k. on November 23, 2005 09:33 PM

Macc, Ozzy, all others who answered here or participated to the project, we would just write you another huge cheer up and congratulations howl from france.
Your opensource work is a bless for the whole community. And your answers here are great help :)
Keep rocking this way.

PicturaPoesis.

Posted by: Pictura Poesis on November 24, 2005 08:36 PM

hi, guys (sorry for the bad english)
i have my root movie whit a "btns_movie.swf" in level 5 that call to the "home.swf" in level 10 "pageflip.swf" in level 10 "contactform.swf" in level 10 etc....

where insert this?

removeML();

Thkyou.huber from argentina

Posted by: huber on December 1, 2005 03:50 AM

Hi,

I have one question:

How can I reverence to elements (e.g. text-fields) on a page from an other page?

I tried

_root.page5.textfield_txt.text = "Foo.";

but it did not work out.. any ideas?

THX.
ralf

Posted by: ralf on December 1, 2005 01:06 PM

Great job. I'm actually making a book using this source. But I faced to trouble that I can't solve for a couple of months....
I'd like to make my book narrated starting from right after the cover. so once I flip cover page narration should start, and keep going until I flip to the next page. a new part of narration will start with the new page and so on. Is it POSSIBLE???
Please, help!!

Posted by: yoorisa on December 1, 2005 11:38 PM

Hey there everyone....
Does anyone know how to use dynamic content? Everything i try doesnt seem to work!

Posted by: Amy on December 2, 2005 02:31 AM

I HAVE A SOLUTION TO THE ANIMATION PROBLEM!

This was way over my head when I got started but the answer was right in front of us in the code. Here is what I did.

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. Thank you so much for the code Macc. I hope my contribution is worthy payment for your great code. Thanks to Spawnblade for your input. If anyone has questions I'll be glad to do what I can. But be gentle, I'm not really an expert coder at all.

And pardon my bad English. I'm from Arkansas.

Posted by: Astonished Man on December 2, 2005 06:15 PM

SOLUTION TO THE REFERENCE/PATH PROBLEM

Yes and I found the solution of the problem how to reference the elements of a page.

The path is:

_level0.pages.p1.page.pf.ph.pic.yourElement (for "normal" left pages)
_level0.pages.p4.page.pf.ph.pic.yourElement (for "normal" right pages)

But now I'm suffering from the flickering problem..

Did someone find a solution for that one?

Posted by: Ralf on December 2, 2005 09:13 PM

On any page, when you mouse over or mouse out to flip a page, that page and anything on it seems to reset.

I have a page that has an animation on it. When you mouse over/out that animation starts over.

I need it to not start over on the mouse over/out. If anyone knows how to stop this, PLEASE HELP!

Thanks!

Posted by: yoorlsa on December 2, 2005 11:44 PM

Wow!!

I'm a newbie on flash and have no concept of scripting whatsoever

I'm doing a uni project, and I'd like to do the following...

Animate a CD case opening up to show an inside sleeve/inlay and the CD, which I have scripted to spin when one of my tracks play.

I guess this is fairly similar to a book turning pages. Each on layers, then as a page is turned you gradually see the inside contents appear on one page and the back of the page you are turning.

Please could someone help me create this!!

A script would be really nice, and also some info as to how to do it.

I'd really, really, really appriciate it.

Could someone please contact me via my e-mail address:

dantebrown064@yahoo.co.uk

Thanks

Ashley

Posted by: Ashley Smith on December 3, 2005 02:23 AM

Hi,
I`m new in PageFlip and woul like someone to help me in how to do the zoom efect in a page.

URGENT

Regards.
Sandra

Posted by: Sandra on December 3, 2005 10:37 PM

Yoorisa,
If you will look two posts up from yours you will see the solution that I posted for this. I was having the same problem and when I found the solution I posted it here for others to use.

I tried to be thorough in my explaination.

Posted by: Astonished Man on December 4, 2005 04:05 PM

Macc, this is absolutely incredible. Thank you so much for making this code open source. Awesome.

I used the page flip for a school project and mostly got it to do what I wanted it to. However, there's one thing I wasn't able to figure out. I "think" it's in the code (maybe in setPages?), but it could be something I did when creating the movie clips. The thing I'm wanting help with is that after page 4, the previous pages on the left hand side disappear, which is noticeable, due to the nature of my pages. Also, pages 3 and 5 have a semi-transparent band on the right hand side. I'm not sure if that's related to the above problem or if they're separate.

Can anyone provide any clues?

Here's the link:

http://www.shrink-art.com/susan/school/commMedia/tv.html

Posted by: Susan on December 5, 2005 04:03 AM

hi Astonished Man.

I try your SOLUTION myself..but it didn't work..

can you send your ".fla" file to me..thx~~~

deson_lee@hotmail.com

Posted by: deson on December 5, 2005 05:59 AM

Hi Macc,

I've tried using some dynamic content in your brochure. I've loaded images dynamically and as I move the mouse over the corners, it tries to attach the movieclips from the library which this tries to load the images all over again and gives flickering effect.

Can you please let me know how to stop the resetting of the page on mouse overs on the corners? I've tried my level best, but no luck till now. Waiting for your reply.

Posted by: Sandeep Kashyap on December 5, 2005 01:01 PM

Sandeep Kashyap, I'd be interested in knowing the answer to that, too. I think that may be at least partially what's causing the problem I mentioned above.

Posted by: Susan Litton on December 5, 2005 07:46 PM

Thanks to Astonished Man!! Hooray! your solution worked out well for me. I have a couple more challenges, though....One thing is opening the cover page by itself after delaying a few seconds....
Another challenge is, when clinking the last cover(back cover), I'd like it to reload the whole movie to the beginning with front cover on top. Just like replaying option at the end of movie.
Any solutions!!! PLEASE HELP!!!!!!!

Posted by: Yoorisa on December 6, 2005 08:29 PM

Hello Macc, I was wondering how long until building of the site for the dynamic page flip? Thanks for your time.

Posted by: Eric on December 8, 2005 12:54 AM

Thanks for this great script!

I understand why there are so many questions, but I'd like to add a general comment: The whole point of the page flip script is to have the feel of a real book. Why would you want to add scrolling or animated stuff? It's more realistic if the contents are static, except maybe for buttons to navigate to other pages quickly.

However, I AM interested in ways to load the content dynamically so that initial loading of the book doesn't take too long.

Posted by: Google on December 8, 2005 05:05 PM

Great work guys!
Easy understandable code and comments....

We rewrite some of the code and now its dynamic via xml and its possible to add sound :)

It also should be very easy to add sound and pages via a webform and database..

:)

Posted by: Karl on December 9, 2005 02:43 PM

One more thing, we did each page 496x496 and we had some problems with the size of the swf, but we fixed that via an iframe, and cut of the over head and set the alignment to left. Total widht was 993px...

Posted by: karl on December 9, 2005 02:45 PM

how can i add new pages to this boook application

Posted by: narasimham on December 14, 2005 11:50 AM

Hi guys!
I try to make full application with Macc`s code using the mProjector, but when I open .exe file everything is locked /// Please help!!!!

Posted by: IHATEFLASH on December 14, 2005 02:57 PM

Ok, call me an idiot, but can someone explain to me how you can load text from a file on to a page in Page Flip v2.2??

I tried using dynamic text, but that failed miserably. So how (and where) can I modify the pages by loading text or jpegs?

And remember to type slowly, because I am obviously pretty dense.

Posted by: Tom on December 17, 2005 05:30 AM

What do u think about this solution we developed for PANNING and ZOOMING?

ZOOM-PAN

Posted by: Pipots on December 20, 2005 04:45 AM

sorry here is the link

http://www.mzzo.cl/revista_online/revista.htm

Directly from chile..(cl)

Posted by: Pipots on December 20, 2005 04:48 AM

Mzzo is cool!

Posted by: syj on December 20, 2005 07:47 AM

i already downloaded the fla's and the source at page 3, but when i open it, it shown "Unexpected file format" can anyone help me ? thx

Posted by: honkee on December 20, 2005 01:04 PM

Really nice Flash. Tghe thing that i ever do when i see that kind of works is trying to understand the actionscript. I like a lot the effects and all. I will start to read the code and trying to understand. :)

Posted by: KILTRO on December 21, 2005 05:33 PM

i got a wee issue with the page reset !! ??(surprise)

i'm loading swf's into each of the pages .. but they still reload each time i mouseOver the corners..

Astonished Man, i tryed using your fix but it don't seem to work ..

i set on frame 5 :

_global.anim0 = 0;

etc in even numbers to 34(no of pages)

then in the MC i put on frame 1

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

(do i rename the PN part also ?)

then on frame 2

if (_global.anim0 !=0) {
this.gotoAndStop(10);
}

and finally on frame 10

loadMovie('pages/page1.swf', this);
_global.anim0++;;
stop();

any ideas .. am i missing something simple ?

ta

bren

Posted by: Brendan on December 22, 2005 02:59 AM

jus a wee update ..

the code works good after all .. its jus the fact that it loads the swf each time it hits frame 10 ..

?? !!

b

Posted by: Brendan on December 22, 2005 03:29 AM

the dynamic content issue thats been discussed now i read now ;)

yours in dumbness

b

Posted by: Brendan on December 22, 2005 03:38 AM

Brendan,
I'm not sure if my solution will work with loading swf's. To make it work, though, you would have to change some of the addressing. But to answer some of your questions:

Yes ... you would rename the PN to what ever the even page number is that you have your animation on. Like, if you animation is on page 33 you would make this line say:
if (_root.getPN(32)==_root.page) {

You wouldn't want your movie to load in frame 10. What is going on with that is this. You start with your _global.anim variable set to 0 as defined in frame 5 of the main timeline. This line says if the variable is NOT = 0 then go to the last frame of the animation and stop there. So then if it is equal to zero the animation will play. When the variable is incremented at the end of the animation that is what keeps it from playing over and over. It makes it jump to the last frame.

Since you are loading a swf you will probably need to use "createEmptyMovieClip" and load the movie into that so you can address the clip. Then, instead of this.goAndStop(10) you will have to replace "this" with your movieClip name.

You will have to make sure other paths are correct. I don't have time to go through the script and check what all, but you might have to add _root. in front of things in your movieClip.

Try this. It might just work.

Posted by: Astonished Man on December 22, 2005 06:17 PM

Does anyone know why the pages stop working if you unload the book and then load it again. The comments in the code mention something about a mouselistener command but I dont understand it

Posted by: Rob on January 5, 2006 02:43 PM

hi all
can u help me with a dynamic version of pageflip v2.2?

i like the large cover effect

Posted by: Aldo on January 6, 2006 12:12 PM

I need someone to put my 4x6 magazine on the web with V2.2 PageFlip.

How much and How long ??

Please send email to brad@yellowcabmagazine.com

Thanks everyone :-)

Posted by: Brad on January 7, 2006 05:12 AM

Wow, cool script

But there is a loss (waste) of memory. Each flip costs a bit of mem.
This waste accumulates during pageflip. Payback ;-) comes when I close the flashplayer or browser.

Annoying, especially in the dynamic version...

Is there anybody out there, who knows a solution?

Hawkeye

Posted by: Hawkeye on January 9, 2006 11:56 AM

Very impressive pageflip code - well done to Macc and all who have helped develop it

does anybody know how to adapt the dynamic source posted by Steve to use the "warptopage" function instead of the "gotopage" function, so that you could have a button that takes you straight to a page without flipping through each one?

I would also like to know how to make the dynamic version load each page at a time - or a small portion of the book so that you don't have to wait for all the pages to load at the beginning.

Thanks for any help with these issues

Blazed

Posted by: blazed on January 10, 2006 06:01 PM

I don't know which forum is more "active" so I'll just post my query here again:

Hi there! Inspired by Macs flipbook I adapted steves version of the flipbook( http://www.76design.com/shiftcontrol/index.php?&page_id=13&article_id=2) So far everthing work out great. I just have one problem. I want to Insert a page that dynamically loads text from an external .txt file. Doing this is simple. The "dynamic text.swf" file works fine on its own, but I have trouble inserting it into the flip book.Running the flipbook, when i get to the page with the dynamic text I don't see anything!??when I hover over the area where the text should be displayed, the mouse cursor changes to the "text" cursor, so there is something but it's invisible! Hope you guys here can help!

Posted by: Nguasi on January 11, 2006 01:51 PM

Hi there, I'm following this topic for a long time.
And I don't understand why nobody has found out how to zoom in Macc's PageFlip.

Maybe someone can post his version with zoom functionallity?

Respect to Macc!

Posted by: Connector on January 12, 2006 04:17 PM

hi Guys! Sorry for bothering you with my previous question! This simple script did eventually do the job:

{
this.loadVariables("text.txt");
}


Sometimes solutions are just too easy....

Posted by: nguasi on January 15, 2006 01:19 PM

Hi, I'm using the file in my final and I don't know much about actionscripting. Which variable is for just the one click action?

Posted by: meijiOrO on January 19, 2006 11:37 PM

does anyone know how to get rid of the drag function?

Posted by: muldeki on January 23, 2006 06:06 PM

Hi,
I am making page flip and I need to put movie clips on each page. The problem is that when I did this it takes lots of memory space and slow down the computer. Any suggestion such that I can stop all the animation and only play those whose page is at the top

Posted by: Sandeep on January 25, 2006 08:50 AM

Maybe someone can post his version with zoom functionallity?

Posted by: Connector on January 26, 2006 12:09 PM

Macc, I need the dyn PF, how do I contact you?

Posted by: naz on January 27, 2006 01:43 PM

Hey, Im having a prob with animation. I tried using Astonished Man's code where it does work if i don't rollover the corners until the tween is completely done but when i rollover the corners halfway through my tween it resets to the beginning.

Posted by: meijiOrO on February 1, 2006 10:15 PM

hi,

I was looking at the posts when I didn't understand why things wouldn't work properly when I loaded the external .swf. I couldn't figure out the removeML function for the longest time, but here is where I used removeML and it works for me:

button.onPress = function(){
_root.pageflip_containing_movieclip.removeML();
pageflip_containing_movieclip.unloadMovie("pageflip.swf");

}

Posted by: h|a on February 2, 2006 09:59 AM

hi:
Some time ago i've to do this piece using the v1 page fliping: I had many problems to resolve it!
http://www.systemminds.co.uk/tdk

Posted by: laertiuos on February 3, 2006 04:33 PM

hi

Can you do anything with the tear off pages? i.e. when you tear a page rather than it disappear altogether can it be emailed? i,e, it exports as an image file such as a jpg which can then be emailed? Is this possible?

Also is it possible to print the spread you a viewing?

Thanks Teresa

Posted by: teresa on February 6, 2006 05:48 PM

I can't seem to get the gotopage function to work. I'm not exactly sure what I'm doing wrong. Can someone post how I can make a link/button that jumps to a certain page?

Posted by: jeannie on February 7, 2006 04:31 AM

Can someone explain to me how the large cover script works? I want to make tabs show and I think theres something in the script to be able to do it.

Posted by: meijiOrO on February 9, 2006 03:36 PM

Hi Macc

Seen on this thread that the dynamic aspects of PF are a little flickery (ie imported JPEG/SWF).

I've spent a few hours trying to solve it, with no success :(

I can't seem to establish from the comments here whether a dynamic version is or is not available. As a few people have said, I'd happily pay for a dynamic version if it becomes available.

Why not keep the normal version as open source, and sell the dynamic one if possible? You've developed a fantastic piece of software, and I think you could could make some encouraging development dollars from it :)

Banster

Posted by: Banster on March 8, 2006 11:28 PM

I saw a lot of request for Zoom but no answers or code.
I saw zoom in Oxidev,com flip book.It really looks good

Posted by: uday on March 12, 2006 01:47 PM

Im using code to make a menu for a cdrom but when I do a loadmovie to call the booklet.swf the booklet turning page speed lags alot. I've tried to change the speeds all the way to .25 a but it still lags and anymovie clip also lags. I have about at least 60 pages but if I play the booklet.swf by itself it doesn't lag. Plus Ive already tried with less pages but it still lags. Does anyone know how to stop the lag????

Posted by: meijiOrO on March 15, 2006 03:52 AM
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?



Thank you!

Most Visited Entries
Sketches, Works & Source Code
Lectures
Contact
Backlog
In Love with
Powered by
Movable Type 2.661

© Copyright Mario Klingemann

Syndicate this site:
RSS 1.0 - RSS 2.0

Quasimondo @ flickr
Quasimondo @ LinkedIn
Quasimondo @ Twitter
Quasimondo @ Facebook
Quasimondo @ MySpace
Quasimondo is a Bright
Citizen of the TRansnational Republic
My other blog in german
Impressum


My family name is written Klingemann,
not Klingelmann, Klingeman, Klingaman, Kingemann,
Kindermann, Killingaman, Klingman, Klingmann, Klingonman
Klingemman, Cleangerman, Klingerman or Kleangerman

profile for Quasimondo at Stack Overflow, Q&A for professional and enthusiast programmers