Open PageFlip to Other Pages

Several people have asked how to start the Flash PageFlip SWF with the book initially displaying some page other than the first. Fortunately this is a pretty easy task to accomplish.

Follow the tutorial appropriate for whichever version of the PageFlip you're using.

Free PageFlip:

  1. Get the Free Flash PageFlip File.
  2. Open the file.
  3. Open the Library panel.
  4. Open the Book folder.
  5. Double-click the icon of the Bound Pages clip to begin editing the Bound Pages clip.
  6. Select the first frame of the Bound Pages clip's Actions layer.
  7. Open the Actions Panel.
  8. Go to line #27 and change the curPage variable to "2.5". ("2.5" shows pages 2 and 3, "4.5" shows pages 4 and 5, etc.)
  9. Scroll down to the bottom of the actions panel and paste the following code at the very end of the file:
//
// Force Book to update.
startFlip(-1);
flipRelease();
//
// 

Improved PageFlip:

  1. Get the Improved Flash PageFlip File.
  2. Open the file.
  3. Select the first occupied frame of the Pages layer (frame #5).
  4. Drag the selected frame a few frames to the right. This makes sure the pages are loaded before the book is shown in its open state.
  5. Open the Library panel.
  6. Open the Book folder.
  7. Double-click the icon of the Bound Pages clip to begin editing the Bound Pages clip.
  8. Select the first frame of the Bound Pages clip's Actions layer.
  9. Open the Actions Panel.
  10. Go to line #33 and change "this.CP = .5" to "this.CP = 2.5". ("2.5" shows pages 2 and 3, "4.5" shows pages 4 and 5, etc.)
  11. Go to line #32 and change "this.ENP = 2.5" to this.ENP = 4.5". (ENP needs to be set to 2 more than CP)
  12. Publish the file to see the changes. (Menu»Control»TestMovie)

If you get an error saying "A with action failed..." then you need to make sure the pages you want to display are loaded before the book is placed on the stage. Hope it helps.

2 Responses to “Open PageFlip to Other Pages”

  1. Kyle Groft
    March 11th, 2009 | 11:42 am

    Pixelwit,
    I’m currently working on a directory page for my booklet. My booklet is similar to a coupon book. It advertises companies and also has numerous other functions that allow one to view commercials, print coupons, and email us about posting an ad.

    My co-worker and I are receiving ad requests to no end. Our boss wanted us to add a directory so that a user may instantly jump from a ‘table of contents’ page to a page that may be halfway in the book.

    Essentially, we want to be able to jump from page 1 to spread 5-6. Is there any way better than another to accomplish this feat?

    Thank you,
    Kyle Groft

  2. March 12th, 2009 | 12:02 pm

    Hello,
    thanks for you flip code.
    I am trying to make the page flip with a click, instead of pushing manualy the page to the left.
    Could you help me? Urgent.

    Thanks

Leave a Reply

PixelWit.com's Comment Guidelines

© Sean O'Shell 2007-2009