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

Creating custom video controls

From: Creating a Portfolio Web Site Using Flash CS4 Professional

Video: Creating custom video controls

Flash is very flexible, allowing you to not only at the video controls you want, but to also customize the look of the controls you add. So let's take a look at where this is at, currently. I'm going to double-click on this movie clip, because inside of this movie clip the Video Player copy movie clip, there is this FLVPlayback COMPONENT. In my PROPERTIES panel, with it selected, I can open up the COMPONENT INSPECTOR. So this is where I have been changing the Skin and each time I change the Skin and Publish out the file, it does generate one of these files.

Creating custom video controls

Flash is very flexible, allowing you to not only at the video controls you want, but to also customize the look of the controls you add. So let's take a look at where this is at, currently. I'm going to double-click on this movie clip, because inside of this movie clip the Video Player copy movie clip, there is this FLVPlayback COMPONENT. In my PROPERTIES panel, with it selected, I can open up the COMPONENT INSPECTOR. So this is where I have been changing the Skin and each time I change the Skin and Publish out the file, it does generate one of these files.

So just be aware that that does happen. You do need these files if you're using the SkinOverPlayFullscreen.swf file, for instance. So quite frankly, I don't need either one of these. In fact, I will just go ahead and throw them away, because what I am going to do is I am going to click on the Skin, on the Magnifying Glass, and I'm not going to use any one of these Skins. But feel free to peruse them. They might interest you because there's a fair amount of variety in each one.

I'm just going to select None, because I want to integrate my own buttons. So with no Skin selected, I am going to select OK, and I am going to close the COMPONENT INSPECTOR, and as you can tell, the Skin is gone. Now, I am going to go to Window and open up my COMPONENTS panel, because in my COMPONENTS panel, under the Video section, there's a huge list of buttons that I can add. So now I can add buttons on a case-by-case basis. So the first thing I am going to do is I am going to create a new layer and I'm just going to call it video controls.

Now with that layer selected, I can start to drag out the buttons I want to use, say, for instance, this PlayPauseButton. The SeekBar I like a lot. I'll just drag that on, and the FullScreenButton is pretty nice, so I will just put that right down there. So notice how I can kind of position them in the place that I want, and I can do a Test Movie, and notice, without adding any code whatsoever, I can go ahead and use these buttons. (Video playing) I can scrub, I can even go full screen. This button would work as well, once I publish the HTML file.

But in general, everything works out great. I didn't have to add a line of code. That's very effective, but notice that I can even zoom in on these buttons and customize them further. So if I just double-click on this PlayPauseButton, notice how it shows me all of the states of these buttons. So the over state, when you rollover the button, the down state is when you click on it and then the inactive state. But notice if I just start double- clicking on this, I can really dig down to the specific elements that make up this button, and notice they're all movie clips.

So I'm already about four levels deep into this, and I have this area selected, and I can change the color if I want to. So I'll just change it to red, for instance, and it changes it that way. I'll click back out to VideoPlayer copy. Notice how it changes this button, as well as this one, because they share the same background. So you really have a lot of control when it comes to customizing your buttons, and what you could end up with is, potentially, another file, so I am going to go to File Open, and in the Assets folder, in design, I have this CustomVideoControls.fla. What you could end up with is a file like this.

Since you have spent all that time customizing your buttons, you could save a separate file and then just use this content. So right in here, there is those three buttons, and all I am going to do is copy this content. I am going to go back to my Video.fla, and I will delete them here, but even though I deleted them on the stage, if I open up my LIBRARY panel, notice they technically still exist. So when I go to paste in these other controls, it's asking me "Hey, do you want to replace the ones that are already in there, or do you not want to replace them?" Well, I want to replace the ones that are currently in my library, select OK.

Let me zoom out just by hitting Command+Minus, and I can move these buttons right into place, kind of like that. But notice how they do have this new look to them, and I can go to Control > Test Movie, and let's see if these buttons work. (Video playing) Yup! they work like a charm. I can scrub, and again, I can go full screen as soon as I Publish out the appropriate HTML page. So notice that Flash really gives you a lot of flexibility in adding the specific video buttons you want to add, as well as customizing their look.

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

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

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.