Username:
Password:
Adobe Flash CS4 Video Tutorials

Deploying Flash Video / Deploying Video with Flash pt. 3

Subtitles of the Movie

In this tutorial we're going to deploy a video using the ActionScript 2.0 FLV Playback Component, and we'll assume we want to support the Flash 8 Player, and that's why we're going back to ActionScript 2.0. So, let's select File, New, and ActionScript 2.0. Go to Window, Components, and drag this component to the stage, and then close that panel. Let's go to the Component Inspector and we haven't chosen a Content Path first. Now, actually I should save the FLA before I choose a Content Path because it's going to be important to know whether the SWF is going to be in the same directory as the Content. If it is, no path is required, but until I save the FLA, Flash doesn't know what directory the SWF is going to be in. So, let me just show you this; I won't save this for now. Go to the Content Path, get this dialog, click on the Icon, and choose 0207 FLV. You notice it gives you the complete path because it doesn't know whether this FLV is going to be in the same directory as the SWF or not, or what relation it will have to the directory that the SWF is in, so it has to provide the complete path, but this path would not be useful when you upload to the Web. So, let me just Cancel that. What you really want to do is save this first, and I'll save it as 0207 and this is the same directory as the FLV, so now when I click Content Path, click the Icon, tell it 0207.flv, now it just brings up the filename because it knows that the SWF and the FLV will be in the same directory, and click OK. It gets the metadata. Let's just take a look at the Skin. You notice there's no option for choosing the color, and in fact this is a completely different selection of Skins than we had for ActionScript 3.0, so I'll just leave that, click OK. Notice also here, there's no selection of color, so the selection of color actually occurs right in the Skin drop-down, so Clear is one color, Mojave is another, and Steel is still another. So, I'll just accept all that now, and go to File, Publish Settings, and we're assuming we want to use the Flash 8 Player, so let's set that here; ActionScript 2.0, that's good, and this is fine as well, and just click Publish and then get out of that, and here are the files we just created: the HTML, the SWF, and also the Skin file. So, let's test by double-clicking on the HTML. And I'm realizing that this is not positioned correctly on the stage, and also that the stage is not sized correctly. Let's take a look at that. I'll get out of this, so I'm going to double-click here to make this smaller and you can see that the stage is not sized correctly; it's not wide enough for the video and also the video isn't positioned correctly on the stage. So, I'm going to click on the FLV Playback Component and bring up the Properties Panel. In order to position this at the upper left-hand corner of the stage we want this to be at zero, zero. So, just type in zero and hit Enter, type in zero and hit Enter, and we're also going to go and make the stage 720 by 396, the same size as the video. So, I'll get out of that. First let me go to the timeline and let's just scroll up here and I'll just click here to make the Playback Component invisible for a moment, and you can see that we're positioned exactly at the upper left-hand corner of the stage, and also you can see this little registration mark, this little plus sign, that also shows us that we're positioned correctly. Now, let's go to Modify, Document, and make this 720 and that 396, and click OK. And now let's Publish again and test again. And now you can see we're positioned and sized correctly and I can pause, and I can play. And that concludes this tutorial on deploying a video using an ActionScript 2.0 FLV Playback Component.

Tutorial Information

Course: Adobe Flash CS4 Video
Author: Michael Hurwicz
SKU: 33967
ISBN: 1-935320-32-7
Release Date: 2009-02-17
Duration: 8.5 hrs / 121 lessons
Work Files: Yes
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 81,350 Video Tutorials (20,800 free)
  • Video Available as Flash or QuickTime
  • Over 782 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available