Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
Flash and ActionScript are ideal for creating flexible, easily updatable web sites that are both unique in design and small in file size. In Creating a Portfolio Web Site Using Flash CS4 Professional, Adobe Certified Instructor Paul Trani shows how to exploit Flash to create a web site that showcases work to clients and prospective employers. Find out how to add dynamic navigation, animation, and video to a page, and how to load, sort and display XML that enables portfolio content to be updated without opening Flash. This course is designed to take your existing tweening skills and gotoAndPlay code and walk away with a fully functional Flash site. Exercise files accompany the course.
Video is one of the most compelling assets you can add to your site and Flash makes it easy to create and import video. So that's what I am going to do. I have my video.fla file open, and I want to replace this image with a video. So I am going to double-click on this movie clip, and I am going to select just this image and I am just going to make note of the size. The Size is about 500 pixels wide. So I want to keep that in mind when I import my video, because I want it be about that wide.
So I am going to delete that image. And I am going to go to File> Import and I am going to Import Video. So you are greeted by this Import Video dialog box. It asks you where your file is. I'll click Browse and I will browse to it, because in my Assets folder, in the video folder, there's this newport QuickTime movie that I want to import. So I am going to select Open and it does tell me that this QuickTime movie doesn't seem to be supported by the Flash player.
So it's going to launch, or ask me to launch, the Adobe Media Encoder so I can go ahead and convert that video to an FLV file or F4V. So I'll select OK, and right down here at the bottom, I can click Launch Adobe Media Encoder. Now the Adobe Media Encoder does come with Flash. It is technically a separate program, but I like how you are able to convert videos into the Flash format and you can convert as many as you want. You to list them all in here.
But notice how it already references my QuickTime movie. It tells me the Format, but I want to jump in here to the Preset. So if I twirl that down, you can see that I get all these different options to select and quite frankly, I am just going to select FLV - Same As Source. Well, what is FLV - Same As Source? Well, I can click on this link right here and it will open up the Export Settings for me. At this point, I can review what it is. It gives me a summary, saying it's actually pretty large and also does include audio.
Well I can modify these settings if I want. So it's just a matter of going to that specific tab, such as Video, and right in here, I can Resize the video. So again, I want to resize it to about 500 pixels. I want to make it 500 pixels wide. Now it's going to fit that space better. And I can control some of the other options as well, but everything looks good now. I just wanted to adjust the size and I can select OK. All right. If I scroll down to this Output File area, and I click on this link, this tells me where it's going to be exported to.
Now what I want to do is I want to out it in the same area as my portfolio.fla inside of a video folder there. So I am going to click New Folder and the name of the folder is going to be video. In this video folder, I am going to put that newport.flv file in there. So I will just click Save. And now it needs to be rendered. Rendering it means the Adobe Media Encoder needs to make all of these frames at this certain size. So it says that it's waiting to be rendered and all I need to do is click Start Queue and if I had more videos in there, it obviously would render out all of them, but in this case, I am just rendering one and it is actually done.
So I will close the Adobe Media Encoder. I will go back to Flash and it does say, "Hey! You know what? After you are done with the Adobe Media Encoder, make sure you switch back to Flash and click the Browse button to locate the file you just created." So I am clicking on the Browse button and I am going into where I created that file, which is in the video folder. There is the newport.flv file. I will select Open, and I want to make sure it Loads in this external video with the playback component.
So most of the time, you are going to want to use this option and I will show you what that looks like, because if I click Continue, this is the playback component right here. This playback component comes with this skin, which I have full control over. So if I open up this dropdown menu, I can select, say, a different skin. So this is the skin over the video, showing all of the buttons. Well that's quite a bit, but I can start to select sort of all of these different options and really, maybe I want to go with the SkinOverPlayMute option, which just gives me these two buttons, and I can even change the color to fit my design, which is red.
So after that's done, you can click Continue, and then it does say, "Hey! You know what? Keep in mind that you need to upload this video when you are done with your website, because it's going to reference this external file. So make sure this FLV travels with your website if you happen to upload it. So now it loads in that video using FLV playback component. I could move it into position. Now the next thing I want to do is take a look at some of the properties for this FLV playback component.
So in the Properties panel, notice that it does say it's an Instance of the FLVPlayback. Well I can click this icon right here and that just opens up the Component Inspector panel. Now if I expand this out, notice that I can change the color and change some of the other settings that I got earlier. But what I don't want to happen is I don't want this video to play automatically when they click on this section. In fact, I want to change the autoPlay to false. So that's all I want to do here. The color and everything else looks good.
So I can close that panel down and now I am going to go to Control>Test Movie. There is my video. It loads up, but it doesn't auto play, not till I click on that button. (Video Playing) I hear the audio. I can pause the audio and still watch the video. And it all looks pretty good. So I would say this is looking really good for what I want to do. But let's take a look at this within context of our site.
I was working in the video.fla file. But what I want to do is open up this index.fla. So if you recall, this is my main site. This is the file that loads in all the other SWF files. So I am going to do Control>Test Movie. Now I am going to go ahead and click on Video to go to the video section. You can see my video.swf file loads up and I can play this video. (Video Playing) Let's check out what happens if I play this video and then navigate to another section before this video is done playing. (Video Playing) So you probably noticed that the audio continued to play and this is obviously going to be an issue, seeing as you have navigated away from that page, we want that audio to end.
So regardless of the section you go to, we want to make sure all the audio has been stopped. So that's what I want to do next is in this index.fla file, I am going to go to the Timeline and I am going to go to this first frame here, in the AS layer and I am going to open up the Actions panel. Now currently what I have in here are all of my various function calls that calls this function, that navigates to that particular section. All right. So within this function, I want to stop all audio, but what I need to do first is I need to create an import.
So right up here at the top, in my current list of import settings, I am going to go ahead and import something else. I am just going to type, import flash.media and I'm going to import the SoundMixer. There it is. If it highlights you can hit Enter, and we'll select it, and what this does is it tells Flash to go get all the code for SoundMixer because I want to use one of the functions associated with SoundMixer.
Now that it's imported all of that code, right down in here in this moveContent function, and after these trace statements, I am going to type in SoundMixer.stopAll. You can see that it highlights it right down here. I can select that, do an open and close parentheses, end with a semicolon and this will stop all audio. So anytime you navigate to another section, it's going to kill any audio that was in that previous section. So let's go ahead and test this out.
Video section, I am going to play this video, and then I am going to click on the About button. Now the audio is going to stop playing when I click on the About section. (Video Playing) The audio stops and now it's working appropriately. So again, that's an issue you might run into when you start loading in audio or loading in video is it might continue to play. You can use the SoundMixer.stopAll, and it will kill any sound that's going on, but otherwise this is set up.
Flash makes it easy to take your current video and convert it to Flash video format as well as applying a certain skin with certain buttons to it and control how it gets integrated with your site, being able to stop the audio using the SoundMixer.
Find answers to the most frequently asked questions about Creating a Portfolio Web Site Using Flash CS4 Professional.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.