One of the most frequently asked questions I encounter is: What’s the best way to create an attractive slideshow online? Whether you are displaying a portfolio, advertising products, introducing your company or organization, or just sharing a photo album, Flash Professional can create highly inviting presentations.
Flash Professional CS5 comes with templates that simplify and automate creating Flash slideshows. In this chapter, I’ll show you how to use them.
In the course of customizing the Flash CS5 Professional Photo Albums, I’ll show you techniques for editing templates, actions, and XML code that you can apply to working with other complex Flash interactive objects.
And, at the end of this chapter, I’ll address the challenges of making your SWF slideshows accessible in browsing environments that do not support Flash, including Apple iPhones and iPads.
The “Simple” Photo Album template in Flash Professional CS5 creates a flexible, easy-to-edit presentation that can display photos as a timed slideshow.
Start creating a slideshow by choosing File > New. In the New Document dialog, select the Templates tab. From the Media Playback category, choose Simple Photo Album. The template opens, with a visible instructions layer, and some rather garish default artwork (Figure 93a).
Figure 93a. Default settings in the Simple Photo Album template.
Choose File > Save, and save the Flash (FLA) file with any filename.
Figure 93b. Customizing a slide.
Figure 93c. Inserting a new frame to add an image to the slideshow.
To generate a Web-ready SWF that you can embed in Dreamweaver, choose File > Export > Export Movie. There are different export options, but you want to save the slideshow as a SWF file.
The Advanced Photo Album converts a set of photos to sized images and thumbnails. It can display a set of photos either as an automatically timed slideshow or as a manual slideshow (the user clicks a thumbnail to see an image). You can define transition effects and timing.
The first step is to collect a set of images. For the purposes of this How-To, we’ll work with six images, but you can adjust that to your needs. The Advanced Photo Album will resize both large and thumbnail versions of your image, but I suggest starting with images in the 600-pixel-wide range for best display. Put all your images in a single folder, and rename them image1.jpg, image2.jpg, and so on (the images must have those exact names).
With your images organized and named, choose File > New. In the New Document dialog, select the Templates tab. From the Media Playback category, choose Advanced Photo Album (Figure 94a).
Figure 94a. Opening the Advanced Photo Album template.
Choose File > Save, and save the Flash (FLA) file (with any filename) in the same folder you used to store the images you’ll use in the slideshow.
Test the slideshow with default settings by choosing Control > Test Movie > in Flash Professional. The slideshow plays with the first four slides only, and with default background, timing, and other settings that you’ll adjust in the following steps:
// USER CONFIG SETTINGS =====
.var secondsDelay:Number = 2;
to another value (for example, changing 2 to 4 will present each image for 4 seconds).var autoStart:Boolean = true;
to var autoStart:Boolean = false;
.
var transitionOn:Boolean = true;
to var transitionOn:Boolean = false;
.var transitionType:String = "Fade";
.<image title='Test 4'>image4.jpg</image>
and changing the copied version of the coding to <image title='Test 5'>image5.jpg</image>
. Do this as often as necessary for as many images as you placed in the slideshow folder.
<image title='scarab'>image1.jpg </image>
(except that instead of scarab
you’ll have a caption or title appropriate for your image).Having customized the slideshow content, timing, and effects, a remaining element in creating a customized slideshow is to change the background. The background artwork in this template is somewhat complex, and some of the background elements are essential to the slideshow and cannot easily be edited. But you can change the background color by first unlocking the Background layer (click the lock icon in the layer), selecting the main background rectangle, and assigning a new color in the Properties panel (Figure 94b).
Figure 94b. Adjusting the background color of the slideshow.
Each time you adjust and customize the slideshow, test the presentation (Figure 94c).
Figure 94c. Testing a presentation.
A final but critical step: Choose File > Export > Export Movie. Save the SWF file in the same folder as the images. When you embed the slideshow in a Dreamweaver CS5 Web page, copy both the SWF file and all the images to the same folder (or subfolder) in the Dreamweaver Web page.
When you publish a slideshow as a SWF, you can choose which version of the Flash Player will be required to play the slideshow. In general, newer versions of the Flash Player support more effects, and publishing to the Flash Player will preserve more controls than publishing to Flash Lite, which is geared to mobile devices. You can also control the quality of embedded JPEG images when you define Publish settings.
Follow these steps to export a Flash (FLA) slideshow to a SWF file, playable on the Web, and an HTML page with the SWF file and player embedded within that page:
Figure 95a. Defining filenames for SWF and HTML files.
Because Flash is not supported on iPhones, iPads, or in some other mobile environments, you might well want to generate an alternate version of your slideshow for those viewers. You can export the Flash Simple Photo Album explored in this chapter as a QuickTime movie in h.264 format that will play in those devices, and generally the player controls will be supported as well.
The following set of steps will export a slideshow to a QuickTime movie playable on an Apple iPhone 4. You can easily adjust the steps for other environments:
Figure 96a. Exporting to the highest-quality h.264 compression video setting.
Figure 96b. Defining size and letterboxing for a slideshow exported for an iPhone 4.
3.148.144.228