Creating a Portfolio Web Site Using Flash CS4 Professional
Illustration by John Hersey

Creating menu buttons


From:

Creating a Portfolio Web Site Using Flash CS4 Professional

with Paul Trani

Video: Creating menu buttons

One of the fundamental things you'll want to do in Flash is create a button and eventually add interactivity to it, and that's what I want to do with this project. I want to have each one of these items a button, as well as this John Doe be a button. This is going to be my home button and this is the one I'm going to start with. What I want to happen is I'm first going to give everything a Drop Shadow, just to set it off from the background. Then I want it to highlight red when you move your cursor over that particular item.
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 31s
    1. Benefits of using XML
      4m 56s
    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 your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now
please wait ...
Watch the Online Video Course Creating a Portfolio Web Site Using Flash CS4 Professional
4h 4m Intermediate Feb 17, 2010

Viewers: in countries Watching now:

Flash and ActionScript are ideal for creating flexible, easily updatable web sites that are both unique in design and small in file size. In Creating a Portfolio Web Site Using Flash CS4 Professional, Adobe Certified Instructor Paul Trani shows how to exploit Flash to create a web site that showcases work to clients and prospective employers. Find out how to add dynamic navigation, animation, and video to a page, and how to load, sort and display XML that enables portfolio content to be updated without opening Flash. This course is designed to take your existing tweening skills and gotoAndPlay code and walk away with a fully functional Flash site. Exercise files accompany the course.

Topics include:
  • Optimizing and publishing a Flash web site
  • Designing a professional photo or video portfolio
  • Adding button interactivity
  • Adding functionality to portfolio thumbnails
  • Displaying content with XML
  • Adding audio to portfolio presentations
Subject:
Web
Software:
Flash Professional
Author:
Paul Trani

Creating menu buttons

One of the fundamental things you'll want to do in Flash is create a button and eventually add interactivity to it, and that's what I want to do with this project. I want to have each one of these items a button, as well as this John Doe be a button. This is going to be my home button and this is the one I'm going to start with. What I want to happen is I'm first going to give everything a Drop Shadow, just to set it off from the background. Then I want it to highlight red when you move your cursor over that particular item.

Next, the down state when you click down on it, I want it to highlight white, give it this white glow as well. So that's what I want to do for the buttons is add a Drop Shadow, a roll over red color, and a click white color to each one of these, but the first thing I need to do is make it a button. So that's what I want to do. In my Timeline, in the content movie clip, I'm just going to double-click. What I want to do is I want to take this text and convert it to a button.

Currently, it's about three different things all grouped together, and that's what you might need to do in some cases is break something apart in order to control it a little more. So Modify, go down to Break Apart and you can break apart that cross from the text, because I just want this text here to be the home button. All right. With these two items selected, what I can do is just click and drag it right into the Library and then I get the Convert to Symbol dialog box.

I can go ahead and give it a Name. I will call this home button. I'm going to make sure the Type is a Button and then select OK. Notice in the Library panel, here is my home button and sure enough, it has an icon that looks like a button as well. All right. I want to edit this button now. So I'm going to double-click on it and now I'm in Symbol Editing mode for this button. Notice the Timeline. I have an Up, Over, Down and Hit state, and what I want to do is I want to modify this text for each state.

So I'm going to start with the Up state. I'm going to select that text. In the Properties panel, I'm going to show how you can give something a glow. So down here, near the bottom, I'm going to click this Add Filter button and I'm going to give this a Glow. By default, it gives it a fairly nice red glow but again, I just want to make this black just to kind of set it off from the background. All right. So that's the initial state, the Up state, sort of the untouched state. The next it is the Over state.

This is going to be the touched state. For the Over state, what I want to do is I want to Insert a KeyFrame. So when I Insert a KeyFrame, it actually gives me a keyframe and allows me to modify the contents in here at this point in time, or at this state, in this case. So John Doe, instead of it having this black glow, I can go ahead and change the Color to red and change the Strength to, say, 200%. I can adjust the Blur radius and different things as well, but I really want it to pop when you rollover or when your cursor touches this item.

So typical state, Over state turns red. I'm going to insert another KeyFrame and instead of this being red, I'm going to change it to white. So it's going to have this white pop when you click on it, so the Down state. Lastly, I'm going to Insert a KeyFrame for the Hit area and what the Hit area is is just a larger area and I'm going to select just pink, for instance, this hot pink. I'm going to draw a box. I picked hot pink because you're never going to see what's in this Hit frame.

All it does is it extends out the size of this button. So if you have small text, or you just need a bigger Hit area, you can draw whatever you want in here and that will be your active area for your button. All right. So far, so good! Let's just do a Control > Test Movie. There we are, and when I roll over it, it turns red. If I click on it, it gives it that white glow and it's working pretty well. Notice that when I will roll over even close to it, I'm going to hit that Hit area.

So out here, this is my Hit area. It activates the button. So that's looking pretty good. It even has that nice black glow as well. So I want to apply this same method, I want to convert all three of these into buttons and I want to give each one these same settings, so the same effects. Okay. Since these effects are working out so well for me, I actually want to save them. So with John Doe selected in the Properties panel, down here in Filters, what I can do is Save Presets.

Notice I already have some saved here, but I could just do a Save As and I'll call this one, say, 'Black Glow.' The Over state is nice red. I'd say it looks pretty good. Properties panel, Save As 'Red Glow.' Down state, there is my white. Save As 'White Glow,' just like that. So you can have as many as you want and really, you can build up a nice library of effects to use anytime you start a project.

In this case, I'd want to do the same thing for the About button. Currently, it's not a button. So don't forget that you have to drag it into the Library to make it a button. I'll call this about button, select OK. Double-click that button to enter symbol editing mode and what I can do is start inserting keyframes and I can start giving this effects. So you can see the process is going to go much faster now that I have Filters Presets. So for this Up state, I can select the Black Glow, Over it's going to be a Red, Down is going to be the White.

You don't have to put anything in the Hit area, so you can always skip that step, if you'd like. But really, for each button that you need to create, you do have to drag it into the Library, 'video button.' It's a Button Type, double-click it and, again, it's just the matter of inserting keyframes and then adding those effects. So Black Glow, the Red is the Over state.

Now, note that if I ever change this White Glow, it's not going to change it across the board. They're not really linked together. So just keep that in mind for the Down state that it is going to be that White Glow, just like that. So again, this is probably the fastest way to make buttons too is just by dragging it right into your Library and then calling it. Of course, it helps to have some consistency. Each one's named, say, portfolio button, video button.

So double-click it and Insert KeyFrames. Again, anytime you have a keyframe, you can change that content and it won't affect it in other places. So for the Up state, Black Glow, Over, Red and the Down state is going to have the White. So I really just used one effect and I kept modifying it and then I just saved it as Presets, but I encourage you to really explore this list because there is Drop Shadows, Blurs, some Gradient Glows you can add.

You can even adjust the color of items. It's really helpful when you need to modify the look of an item, just like I did here with my buttons. It works out great. So with all four of these set up, let's do a Control > Test Movie, roll over the About, turns red, turns red, turns red. Everything is looking really good. When I select them, they turn White as well. So now my site set up. I have my buttons created, and now I can go ahead and add functionality to them.

Find answers to the most frequently asked questions about Creating a Portfolio Web Site Using Flash CS4 Professional .


Expand all | Collapse all
please wait ...
Q: While following along with the course, I encountered the following error in Flash CS4: 
1120: Access of undefined property content_mc.
What is causing this error?
A: Flash is looking for something (the content movieclip) with the instance name “content_mc” but it is not finding it. Select the content movieclip on the stage. In the Properties panel give it an instance name of “content_mc”. Make sure there are no spaces before or after. That should resolve the error.
Q: What is the best strategy for integrating 720/60P HD video into a website? Would creating a blank page that opens in full HD resolution be the best way to view the full quality of the HD video file?
A: A video file that large would just be unreasonable for most users to open.  These settings are a good place to start: 600x400is
24-25fps
Audio: 128kbps
Codec: On2VP6
Bitrate level: 1,000kbps
Bitrate Encoding: VBR These are just recommendations, and can be modified to preference. Also keep in mind that in Flash, one of the buttons that can be added is a full screen button, which is part of the skins.
 
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

* Estimated file size

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 ?

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.