Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
Creating a First Web Site with Flash Professional CS5 shows how to make a fully functional, dynamic web site in Flash Professional CS5. This course covers the fundamentals of creating and importing content, adding smooth 2D and 3D transitions, and adding button functionality that goes beyond links. This course will also show how to integrate and control video and audio as well as how to implement a gallery and a contact form. Exercise files are included with the course.
Using video can sometimes get your message across more effectively than just using text and graphics. And I think this About section is really a prime example of that, because for this About section, rather than just having texts talking about Jill, I'd rather include a video of her kind of talking about her interests and what she is passionate about. So I am going to go ahead and add a video right here in this area. In fact, inside of the about background movie clip is where I want to add the video.
So right down here at the bottom is this layer 1. Well, I just want to rename that to video and I want to import the video right into that layer. So I am going to go to File > Import, and I am going to select Import Video. Now I can go ahead and browse to that specific video file. It's on my Desktop in the assets folder. Here it is, My Jill movie. It's a QuickTime Movie. But notice that I can also import MPEGs and some other file types as well.
But I am going to go ahead and just select Jill movie and I am just going to see what happens. And what happens is, it says, "hey, you know what, this video is not necessarily supported by the Flash Player." So you need to use Adobe Media Encoder to covert it to an FLV or F4V. I'll select OK. And I can launch the Adobe Media Encoder by clicking this button right down here. And it tells me to make sure I reference that FLV file after I've created it.
So again, I am launching the Adobe Media Encoder. I am going to take that QuickTime movie, and I am going to convert it to an FLV file. All right, so what it does is it automatically references my Jill movie and is actually ready to output it. But I am just going to double check some of this stuff. I know that I want to output an FLV file. And I can choose from a number of presets as well. I am going to just match the source attributes by selecting that.
And notice that those source attributes, if I click on that preset name I can see what those are. So now I am in Export Settings. And I can just quickly just sort of take a look at this video. So the source of course, 340x215, and the output is going to be about 340x216, maybe off a pixel or so. But I can always sort of change that, maybe resize the video, sort of unlock it and make that to 15, something like that.
But again, I can sort of take any sort of take any preset and then modify it further if I want. I definitely want to make sure there's audio in there, and sure enough there is. It's going to export out the audio at 128 kbps. That's about CD quality. So that sounds pretty good to me. But in general, I am going to leave most of this information as is and I'll click OK. All right, so it is going to output it, but I need to be aware of where it outputs this file. So I am going to click on this Output File link here and I am going to go ahead and make sure it gets output to the right folder.
And what I am going to do is I am just going to go ahead and put it in this Images folder with all these images. So technically it's images and video, but I know I just need to upload this entire folder. So I can just put it right in there. It's going to be called Jill. I'll click Save and from there, all I need to do is start the queue. And it renders the video awfully fast as you can see. All right, now that it's done, I can quit Adobe Media Encoder. Go back into Flash, which is telling me to select that video, which is what I'll do.
I'll click Browse. I'll go and select that video. And remember this is my index.fla. And then here is my FLV file that was just created. So I'll click Open. It maps to that FLV file. I am going to make sure this is selected, Load external video with playback component. So I am going to be using this playback component. And I need to make sure I upload that video file as well. I'll click Next and then I get the opportunity to pick the appropriate skin for this video.
So there's quite a few in here, everything from some minimal classic sort of custom ones to these other skins as well. That's SkinOverAll. So I encourage you to kind of check out all of these skins. There's quite a few. I am actually going to just select this sort of second option down for skins. And it's going to contain sort of most buttons. But if I select that you can see that this s what it's actually going to give me is all of these buttons.
So that seems pretty good so far. I can also choose the color, so I can change that if I want to to red to match my design, and I'll click next and then finally Finish. So it loads in my video. I'll just press the Spacebar. So it actually loads it right over here, but here is my video now. (Female speaker: Hi, my name is Jill Steinman.) And as I press the Spacebar? (Female Speaker: ?I'm a freelance graphic designer working in New York City.) I can actually watch it play. I could even press the Spacebar and the video will still play and I can start to position it where I want it to be.
(Female Speaker: After-- graduating from Rhode Island School of Design, I immediately started working for various high-profile ad agencies.) (Female Speaker: After five years, I made the move to freelancing full-time.) All right, that looks pretty good. I am going to go ahead and move my layer up to the very top, just so my controls are on top as well. But as you noticed, if I hit the Spacebar or if I use any of these controls, they all work from within Flash. (Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic designer working in New York City.) (Female Speaker: After graduating from Rhode Island School of Design, I immediately started working for various high-profile ad agencies.) (Female Speaker: ?being a strong brand and?) Okay, with that in place, and again, I'll just kind of place it right here.
I can go ahead and test this movie. So I am going to do a Control > Test Movie. Remember that is in my About section. I'll click About. (Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic designer working in New York City.) You could see my video plays. But I actually run into an issue, because even though this video plays, if I jump to another section, I'll still hear the audio. So let me just demo that for you. (Female Speaker: After graduating from Rhode Island School of Design, I immediately started working for various high-profile ad agencies.) (Female Speaker: inaudible crosstalk) So you run into that issue where the audio keeps playing.
So I need to put in a quick little piece of ActionScript that tells the audio for that video to stop. Pretty much I need to stop all audio from playing regardless of what button you click on. So I am going to this first frame and right here for this first frame, this is where the code lives for all my buttons. Okay, so I am going to go select this Home button for instance and if I go to Window > Actions, that first frame here, here's all of my code for all of my buttons.
And I need to add actually a new code snippet for this just one of these buttons. And what I am going to do is I am going to select this button and I am going to go to the Code Snippets panel. And what I want to do is I am dealing with audio and video, so I'll go to that folder. And in that folder there is this Click to Stop All Sounds. And that's what I want to do is when you click on any of these buttons I just want to stop all the sounds from playing, so that I just don't hear that audio any more. So I am just going to go ahead and double-click that code snippet to add it, because the important thing that I need is this right here, SoundMixer_stopAll.
That's exactly what I need, because quite frankly I already have an event listener for the Home button. So I really just need this. So all I am going to do is just select this line and I am just going to copy it. And then I am just going to get rid of that code altogether. So I encourage you to check out the code snippets, determine what you need and just use what you need, because for my original Home button event listener, when you click on that button, that's when I am just going to paste in that SoundMixer_stopAll.
So I want to do the same thing for all the other buttons, paste in that SoundMixer_stopAll. So again, I don't know what the next button is that they are going to click on. All I know is I want the audio to stop when they click on that button. All right, with that SoundMixer_stopAll in place that should correct my problem. I'll go ahead and test out this movie. (Female speaker: Hi, my name is Jill Steinman. I'm a freelance graphic designer working in New....) And then the audio stops.
So again, if I go back in here? (Female speaker: Hi, my name is Jill Steinman. I'm a freelance....) regardless of which button I press it stops that audio and my problem is solved. But as you can tell, video can tell more of a story than just text and graphics alone. So my next step now is to integrate this video more into the design of the web site as a whole.
Find answers to the most frequently asked questions about Creating a First Web Site with Flash Professional CS5.
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.