Start learning with our library of video tutorials taught by experts. Get started

Creating a First Web Site with Flash Professional CS5

Adding video


From:

Creating a First Web Site with Flash Professional CS5

with Paul Trani

Video: Adding video

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.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Creating a First Web Site with Flash Professional CS5
2h 45m Beginner Jul 27, 2010

Viewers: in countries Watching now:

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.

Topics include:
  • Understanding web design
  • Creating buttons and web graphics in Photoshop
  • Formatting text with the Text Layout Framework
  • Using the Timeline
  • Creating a custom looping animation
  • Loading images in a gallery
  • Creating invisible buttons
  • Adding music and video to a site
  • Customizing video playback controls
  • Optimizing and publishing a web site
Subjects:
Web Interaction Design Projects
Software:
Flash Professional Illustrator
Author:
Paul Trani

Adding video

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.


Expand all | Collapse all
Please wait...
Q: I followed all the steps and suggestions in the "Adding a progress bar" video, but when I add the progress bar to my web site, I can’t remove it once the index.swf file loads up. The progress bar remains on the homepage and the rest of the pages. How do I make it disappear once the site loads?
A: To make it disappear, just make sure the progress bar is only in frame 1. If it’s on its own layer, then right-click on the 2nd frame in that same layer and select "Insert Blank Keyframe." That will make it disappear.
Q: Despite following the steps in the "Adding a progress bar" video, I cannot figure out how to keep the progress bar from appearing on a movie that has finished loading. How can I make the progress bar disappear?
A: Just add the red line below to the preloader.fla file. This will make the progress bar invisible: 
"function contentLoaded(evt:Event):void { //Optionally change to a clip holder and set progressbar visibility. addChild(contentLoader); progressbar.visible = false; }"
Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Creating a First Web Site with Flash Professional CS5.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

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.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked