Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Adding video

From: Creating a First Web Site with Flash Professional CS5

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.

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.

Show transcript

This video is part of

Image for Creating a First Web Site with Flash Professional CS5
Creating a First Web Site with Flash Professional CS5

34 video lessons · 28205 viewers

Paul Trani
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

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.


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.

Join now "Already a member? Log in

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
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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

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
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.