- While previous versions of InDesign allowed you to create hyperlinks and import video and sound files, the InDesign document itself was static; none of the page content wiggled or barked. While InDesign CS4 introduced the ability to import SWF files and to export to the SWF format, the resulting SWF was still just a container for content that had to be created elsewhere. But InDesign CS5 allows you to do so much more—now, page content itself can be animated. Here's where the real fun begins!
What Can Be Animated?
Any text frame, graphics frame, or empty frame (or group of frames) can be animated. As you saw in Chapter 3, "Multimedia," a frame containing an FLV or FV4 video can be animated, but the video inside the frame won't play until the animated frame calms down and stops doing whatever it's doing. However, remember that a frame containing a placed SWF file can be animated, and the animation inside the frame will play while its container is doing something else (as long as something triggers the SWF to play). Think of the fiendish possibilities!
Exploring the Possibilities
There's a great little guide to InDesign's animation capabilities built right into the application, but you have to do a little digging to find it. First, you have to find a script that ships with InDesign. The script generates an InDesign document containing examples of objects using many of the animation controls. You can examine each object's settings in the Animation and Timing panels and learn a lot.
- To start your quest for the Animation Encyclopedia (its official name), open the Scripts panel (Window > Utilities > Scripts). You'll see two folders: Application and User. The User folder stores scripts you download to add to InDesign's functionality (the scripts displayed are those installed by the currently active computer user); the Application folder contains the scripts that ship with InDesign (Figure 4.1).
- Double-click the script to run it. InDesign takes the reins and builds a six-page document. It may not look very exciting at first (Figure 4.3), but it packs a secret punch. Preview the document and play along. Some objects require that you click them or the page, and some will be triggered when the page loads.
Figure 4.3 The design of the Animation Encyclopedia may not be compelling, but the beauty is under the hood. Preview this simple document, and prepare to be amazed.
Figure 4.4 Scripting can accomplish complex animations far beyond what's possible with the motion and timing controls.
Don't freak out—you're not expected to write code like this! All the behaviors you see on pages 1 through 5 of the encyclopedia—and many more—can be achieved by using the controls and options in the Animation and Timing panels. The inclusion of the over-the-top performance on page 6 is to expose you to the fact that animation, like every other operation in InDesign, is completely scriptable. For this and other reasons, it's a good idea to befriend a scripter and take him/her to lunch occasionally.