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

Creating and importing video

From: Creating a Portfolio Web Site Using Flash CS4 Professional

Video: Creating and importing video

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.

Creating and importing video

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.

Show transcript

This video is part of

Image for Creating a Portfolio Web Site Using Flash CS4 Professional
 
Expand all | Collapse all
  1. 1m 41s
    1. Welcome
      1m 7s
    2. Using the exercise files
      34s
  2. 24m 1s
    1. Understanding web design
      2m 44s
    2. Creating a Flash file
      3m 18s
    3. Importing a design from Photoshop
      7m 45s
    4. Optimizing the design
      10m 14s
  3. 13m 59s
    1. Dynamically loading an image
      3m 37s
    2. Loading random images
      10m 22s
  4. 47m 38s
    1. Creating menu buttons
      8m 18s
    2. Adding functionality to buttons
      8m 56s
    3. Adding navigation
      9m 45s
    4. Creating transitions
      12m 0s
    5. Simplifying code
      8m 39s
  5. 26m 11s
    1. Creating web site sections
      7m 41s
    2. Dynamically loading sections
      11m 7s
    3. Linking to web sites and email addresses
      7m 23s
  6. 29m 18s
    1. Setting up a portfolio
      12m 31s
    2. Adding functionality to thumbnails
      10m 10s
    3. Allowing for unlimited thumbnails
      6m 37s
  7. 41m 17s
    1. Benefits of using XML
      4m 42s
    2. Loading XML content
      4m 34s
    3. Sorting XML content
      7m 32s
    4. Displaying XML content
      7m 35s
    5. Using XML to create thumbnails
      8m 41s
    6. Displaying content with thumbnails
      8m 13s
  8. 25m 59s
    1. Creating and importing video
      9m 47s
    2. Adding a Full Screen button
      4m 15s
    3. Creating custom video controls
      4m 50s
    4. Adding functionality to video thumbnails
      7m 7s
  9. 9m 12s
    1. Adding audio to buttons
      5m 30s
    2. Adding audio to dynamically created buttons
      3m 42s
  10. 21m 19s
    1. Applying professional transitions
      9m 26s
    2. Creating a preloader
      8m 56s
    3. Publishing a web site
      2m 57s
  11. 3m 15s
    1. Reviewing the "corporate" Flash site
      1m 40s
    2. Reviewing the "artistic" Flash site
      1m 35s
  12. 12s
    1. Goodbye
      12s

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 Portfolio Web Site Using Flash CS4 Professional.

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.