Creating a hard page flip effect

6.4k views Asked by At

There are several page flipping source codes out there. Here are just a few I already looked at:

However, none of them really satisfy my needs. I don't need any page curl effects, all I want is the hard cover effect, but for all pages. Are there any other examples out there that have the hard page flip effect on all pages? Or are there any documentation on how the matrix transformation of a cover page works - since I don't quite get it? The content of the album will consist of video, audio, and images.

2

There are 2 answers

2
Björn Kechel On BEST ANSWER

You dont need any of these libraries for a hard-cover effect as they usually focus on the curling. Simply use the built-in-feature: rotationY http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#rotationY

1
Emin A. Alekperov On

In this library:
http://www.rubenswieringa.com/code/as3/flex/Book/source/
Page class has property hard. If set true for it than a page will become hard. You may set this property for each page. For example, look at his method:

        private function toggleHard (page:Page):void {
            hard_btn.toolTip = (page.hard) ? "make next page hard" : "make next page fluid";
            hardBtnIcon = (page.hard) ? hardBtnIcon1 : hardBtnIcon2;
            page.hard = !page.hard;
            hard_btn.invalidateDisplayList();
        }