Adobe Dreamweaver

How to Insert Flash Video in Dreamweaver CS5, CS4, and CS3

The day that everyone has long predicted arrived. Video is no longer a novelty online and Flash video has become the darling of the Web, favored by video giants YouTube and Google Video, as well as a growing number of Web designers. What makes Flash so special? Not only does it combine good quality with great compression, it comes with a video player that is already in use by 95% of Web surfers.

In this column, you discover just how easy it is to convert video to Flash, get a look at how the well-integrated programs in Adobe CS3 Production Premium make it easy to get your video ready for the Web. And, once your video is ready, just follow the step-by-step instructions in this column to add the file to a Web page with Dreamweaver.

Step 1 Edit Your Video in Premiere

Adobe Premiere CS3 is a professional video editing tool capable of handling a wide range of video formats. Create a new project, load in your video, and you’ll find all the features you need to edit, enhance, cut, and create transitions for your video.
—Video by—Total Training

[DW-CS3-FlashVideo-01.tiff]

Tip for Template Users

If you are adding a Flash video or animation to a page created from a .dwt Dreamweaver Web Template, you may run into trouble if your template doesn’t have an editable region in the head area of the page. If you ever receive an error message like: “you don’t have permission to change that part of the template,” you need to update your template before moving on to the next step.

If you’ve created your templates in Dreamweaver version CS4 or later, you probably won’t have this problem, but you’ll know write away if you do have the problem because as soon as you try to add a Flash file you’ll get the error message. To make sure your templates will work with Flash files , follow the instructions in my Dreamweaver FAQ and then come back and you can complete this tutorial. (As you’ll see, you’re not the only one who’s had this problem.)

These instructions will help you solve the problem if you get an error message reads: “Making this change would alter a region that is locked by a template or translator. The change will be discarded.”

STEP 2 Clean up the Audio in Soundbooth

If you want to improve the sound quality of your video, add audio tracks, or other sound effects, open your video file in Soundbooth and you can adjust sound levels, clean up noise, and choose from a wide range of filters to enhance and alter sound quality. The compression you do to video before you put it on the Web can have a negative effect on sound quality, so it’s a good idea to start with a video file that sounds as good as possible.

STEP 2 Clean up the Audio in Soundbooth

STEP 3 AfterEffects

If you want to really dress up your video, add special effects, or apply any of a wide range of filters to your video, your next step is to open your video in AfterEffects. The learning curve on AfterEffects is steep, but you can use this program to make dramatic changes to video and create amazing special effects. Hollywood’s got nothing on you, kid.

STEP 3 AfterEffects

STEP 4 Flash Video Encoder

Finally, you need to optimize your video and convert it to the Flash Format, and the best way to do that is with the Flash Video Encoder. You’ll find many settings as you go through the conversion process, but the basic principal is similar to optimizing an image, you want the lowest settings for the fastest download speed, but you have to balance those against the impact on quality. (You find more detailed instructions for using the Flash Video Encoder in my Flash Video Encoder tutorial.)

STEP 4 Flash Video Encoder

STEP 5 Open or Create a Page in Dreamweaver

Once your video is in Flash format, launch Dreamweaver and create a new page or open an existing one. Format the page as you would any other page and make sure to save it before you add your video.

STEP 5 Open or Create a Page in Dreamweaver

STEP 6 Insert Flash video file

Click to insert the cursor where you want the Flash video file to appear and select Common from the Insert bar, if it isn’t already selected. From the Media drop-down list in the middle of the Common Insert bar, choose Flash Video. You can also choose Insert>Media>Flash Video.

Flash video file

STEP 7 Specify Settings

At the top of the Insert Flash Video dialog box, specify streaming or progressive. Note that you must have special software on your server for streaming video. Check with your Internet hosting service or system administrator to find out whether your Web server supports streaming Flash files. If not, choose progressive. Then click the Browse button and select the Flash file from your hard drive. If the file is not in your site root folder, Dreamweaver will offer to copy it there for you. This is important because the Flash file must be uploaded to your Web server when you upload the page that displays the file.

STEP 7 Specify Settings

STEP 8 Choose a Skin for the Player

Choose a Skin from the drop-down list. Dreamweaver calls the controls for a Flash file a skin. As you can see in this figure, a preview of the selected skin is displayed in the dialog box when a skin is selected. You can choose from the nine screens that come with Dreamweaver and you can add new skins created in Adobe Flash.

STEP 7 Specify Settings

STEP 9 Set Size, Autoplay, and Rewind

Click the Detect Size button and Dreamweaver will automatically insert the height and width of the Flash file in the HTML code. If you want the Flash video to play as soon as the page is loaded, click to select the Auto Play check box. To automatically rewind the video after it has played, select the Auto Rewind check box.

STEP 9 Set Size, Autoplay, and Rewind

STEP 10 Prompt Users to Download Player

The Prompt Users to Download Player If Necessary option creates a message that is displayed on your page if visitors to your site do not have the Flash player installed. You can edit the message in the Message box if you want to change the words. For example, you might use something like: “Join the modern world — get the latest Flash player already!”

STEP 10 Prompt Users to Download Player

STEP 11 Complete Flash Video Insertion

Click OK to insert the Flash file and close the dialog box. The Flash file is represented in the Web page by a box that is the height and width of the video. Click on the box the represents the video and in the Property inspector at the bottom of the workspace, you can make further adjustments to the settings, such as choosing a different skin for the player.

STEP 11 Complete Flash Video Insertion

STEP 12 Verify Scripts Folder

When you insert a Flash video file with a skin, Dreamweaver creates a Flash file with the .swf extension and saves it in your root site folder. This Flash file contains the player controls. In this figure, you can see the file called Halo_Skin_3.swf which contains the skin. Similarly, when you save the page, Dreamweaver automatically creates a special script that helps the file play better in some Web browsers. That script is saved into a folder called Scripts. Both the Scripts folder and the .swf file with the player must be uploaded to your Web site when you publish the page in order for the video to display properly.

STEP 12 Verify Scripts Folder

STEP 13 Preview the Page in a Browser

To view the Flash video, you need to preview the page in a Web browser. You can do that by clicking on the Preview button at the top of the workspace or by choosing File>Preview in Browser and then choosing a browser from the drop down list. You must have the Flash player installed on your computer to view the Flash video. (Note: the Flash skin, which contains the play, pause, and other controls, becomes visible when you roll your cursor over the bottom of the video.)

STEP 13 Preview the Page in a Browser

STEP 14 Learn more about Flash Parameters

To learn out more about Flash video parameters and other more advanced settings, visit www.Adobe.com and search for Flash video.

STEP 14 Learn more about Flash Parameters

Leave a Reply

Your email address will not be published.

one × two =