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

Creating a First Web Site with Flash CS4 Professional

Importing audio


From:

Creating a First Web Site with Flash CS4 Professional

with Paul Trani

Video: Importing audio

One way you can really bring your site to life is with audio. That's exactly what I want to do here. I want to add some audio feedback to these buttons. I want to add a sound when you roll over it and then when you also click on each button. So the first thing I need to do is I need to go ahead and import the files I want. So I'm going to File > Import > Import to Stage. I'm just going to select multiple files. These are WAV files, but if you have an AIF or any other sound format, well, Flash can take care of that as well.

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 CS4 Professional
3h 8m Beginner Apr 15, 2009

Viewers: in countries Watching now:

Information on how to learn Flash is prevalent, but it can be frustrating to understand how to make an entire working web site using this unique technology. Here's a course that cuts through the clutter and offers practical tools for creating a dynamic web site, even for first-time developers. In Creating a First Web Site with Flash CS4 Professional, veteran Flash instructor Paul Trani simplifies the process of integrating animation, video, audio, and user interactivity to create a site that is dynamic and appealing. The goal of this hands-on workshop is to teach web site-building skills for today's demanding interactive industry. Exercise files accompany the course.

Topics include:
  • Manipulating images for the best results
  • Integrating assets from other Adobe products
  • Creating buttons with ActionScript
  • Embedding links to external web sites
  • Exploring text layouts
  • Customizing interactive contact forms
Subjects:
Web Web Design Projects
Software:
Flash Professional
Author:
Paul Trani

Importing audio

One way you can really bring your site to life is with audio. That's exactly what I want to do here. I want to add some audio feedback to these buttons. I want to add a sound when you roll over it and then when you also click on each button. So the first thing I need to do is I need to go ahead and import the files I want. So I'm going to File > Import > Import to Stage. I'm just going to select multiple files. These are WAV files, but if you have an AIF or any other sound format, well, Flash can take care of that as well.

So whatever sound format you have, even if its mp3, I can import it. All I have to do is select them and click Open. Notice now nothing happened on my stage, even though I did an Import to Stage. I did that to show you that with sound files, since they are not visual files, it will put them in the library. So if I open up the Library just by clicking these books here, I can see that there is my click.wav and my rollover. wav. So my sound files are in there. Now what I want to do is I want to add them to this button.

Great thing is this button is a generic button. It's just being used four different places. So I only need to add the audio to one file. So if I double-click on that generic button, it will bring me into the GenericButton's Timeline. So here I'm in the GenericButton. Here is the unique Timeline at the top and this is where I want to add my audio sounds. So in my Timeline panel, I'm going to click here to create a new layer and I'm going to call this layer Audio.

For the over and down states is where I want to add the audio. So I'm going to right-click and Insert Keyframe. So at this point in time on the rollover of this button, I want to play an audio sound. So with that frame selected, I want to go to my Properties panel and I want to click on this Name field here to let me access any audio file available in my library. As we can see, we have both of them in here that I can choose from. I'm going to select rollover. As you can see, it gives me that visual.

One thing I want to make sure is set correctly is the Syncing information. So if I click on this dropdown, I can see that I have Event, Start, Stop and Stream. I want to make sure this is either at Event or Start, because I want it to play immediately. If it's set to Stream, it will lock the playability of the sound file with the Timeline. So in general, make sure it's set to Event or Start and you'll be good to go. Next step, I'm going to go ahead and insert another keyframe by right-clicking, inserting a keyframe in the down state. At this point, this is where I want to include the click.wav file. So in my Properties panel, in the Name field, I want to select click.wav. There it is.

Even if I want to hear what this sounds like or even edit it, I have the ability to select this Edit Sound Envelope. So if I click that button, I can play it. (High pitched zing.) That's what it sounds like. I can raise or lower each sound channel, one is left, one is right, without having to edit it in another program. So if you want to adjust the audio, you can do that in here or you can listen to it if you want. But in general, this sounds pretty good. So I'm going to go with it. In fact, let's just double- check this rollover.wav. If I select that over frame, let's click this Edit Sound Envelope and play this one.

(High pitched beeping.) So that's the rollover sound. All right, they both sound great. They are in the correct spot. Now, all I need to do is go to Control and test my movie. Now, when I rollover, you can hear it. (High pitched beeping.) It sounds great, when I click. (High pitched zing.) Every single one works great. So as you can see, I can import an audio file, just like I can import any other file to add some life to my web site.

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


Expand all | Collapse all
Please wait...
Q: If I create a website using Flash CS4 on a Mac, can I edit it on a PC using Flash CS4?
A: As long the file is saved as a .FLA file with the extention ".fla" typed at the end of the filename when saving on a Mac, it should open with no problem on a PC.
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 CS4 Professional.

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


OK

Course retiring soon

Creating a First Web Site with Flash CS4 Professional will be retired from the lynda.com library on April 24, 2014. Training videos and exercise files will no longer be available, but the course will still appear in your course history and certificates of completion.


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