Start learning with our library of video tutorials taught by experts. Get started
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.
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.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.