Flash Open Book Animation
When you open a book you usually see the top page and the edges of a few pages under the top page. You also see the edges of the back cover of the book. This is what we have in our bookPages graphic.
You can see that I also added a small shadow over the top of the pages at the left edge. This semi-transparent gradient is on a second layer in the PhotoshopR file. When we import this file to the Flash stage, we will get two new layers called bookPages and pageGradient. As we did in the previous tutorial, we will import the Photoshop layers as Bitmap images with editable layer styles and give each layer an instance name identical to the layer name.
- After importing the graphic file into Flash, the new layers are automatically at the top of the Timeline. We will movie the bookPages and pageGradient layers directly under the cover2 layer.
- We don't need these new graphics until Frame 30, when the book begins to open. For each of the bookPages and pageGradient layers, add a Keyframe to Frame 30. Then, go to Frame 1 and click Edit - Clear to remove the graphics until Frame 30.
Now we are ready to open the book. Go to the cover2 layer.
- We already have the cover2 movie clip within a tween span on the cover2 layer. We need to create another instance of the cover movie clip (which will be cover3) to create another tween animation.
- On the cover2 layer, select the movie clip. Click Edit - Copy.
- Create a new layer just above the cover2 layer and name it "cover3". Add a Keyframe to Frame 30. Click Edit - Paste in Place to place the movie clip in the same position as on the cover2 layer.
- In the Properties panel, give this movie clip an instance name of "cover3".
- We need to adjust the Transformation point on this cover3 movie clip. Click on the book cover with the Free Transform tool and drag the Transformation point (that white dot) from the center to the left edge of the movie clip. Now the left edge of the graphic will work as the spine of our book.
- Right-click on the cover3 movie clip and choose Create Motion Tween. Drag the Tween span to end on Frame 54.
- Right-click to add a Keyframe on Frame 40 of the cover3 layer. Click on the cover3 movie clip with the Free Transform tool. From the Menubar, click Modify - Transform - Rotate and Skew. Place your cursor next to the right edge over the center small box and it should change to a small vertical line. Drag upward slightly to skew the cover. Then, place your cursor over the small square on the right edge of the book cover and drag the edge to the left to shorten the width of the book cover. That is the first transformation for our tween.
- Go to Frame 45 and add a Keyframe. Repeat the last step to open the book cover a little further. Don't worry if the book cover goes beyond the top of the stage.
- Add a Keyframe to Frame 50 and repeat again.
- Add a Keyframe to Frame 52 and repeat. Add a Keyframe to Frame 54 and repeat for the last time.
IMPORTANT: These app development tutorials are written with the Flash novice in mind. You will need to optimize your app beyond what is covered in these tutorials before finalizing your app for the app store.
Copyright 2018 Adobe Systems Incorporated. All rights reserved. Adobe product screen shot(s) reprinted with permission from Adobe Systems Incorporated. Adobe, Photoshop, Photoshop Album, Photoshop Elements, Illustrator, InDesign, GoLive, Acrobat, Cue, Premiere Pro, Premiere Elements, Bridge, After Effects, InCopy, Dreamweaver, Flash, ActionScript, Fireworks, Contribute, Captivate, Flash Catalyst and Flash Paper is/are either [a] registered trademark[s] or a trademark[s] of Adobe Systems Incorporated in the United States and/or other countries.
Editor's Picks Articles
Top Ten Articles
Content copyright © 2019 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Diane Cipollo for details.