Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Earlier, I demonstrated how to animate a series of flies along a motion path. While the animation looked good, it would be really impressive if we added some audio. In order to trigger this audio, we need to create a sound hotspot. A hotspot, or an invisible button, is an area of the page that triggers audio when you mouse over it. Now let's import our audio. Your audio should be an MP3. If you have other sources of audio, you should convert it first into an MP3 using iTunes or another program. If you try to import another type of audio, like a WAV file, InDesign will display a warning telling you that it won't work inside the Flash Player.
So to bring in an MP3, we are going to go to File > Place and inside our Links folder we have a media folder. In our media folder we are going to select liveSpread_flies.mp3. With our floated cursor, we are going to place this on our pasteboard. Since there's no visual appearance to the audio we can leave it on the pasteboard. To preview the audio, I am going to select this audio file and go to my Media panel. Inside the Media panel I can press the play button to listen to it.
(Bzzz. Flies buzzing.) Inside the Media panel I have some other options that control its playback, but I am going to control it via a button so I don't need to change these. To prevent myself from moving this audio file, I am going to go to Object > Lock. Now that I have the audio file placed I need to create a sound hotspot. I am going to grab the Rectangle Frame tool and switch to the Buttons layer. I am going to draw a rectangle over the area that I want the hotspot to be. Next, I'll grab my Selection tool and resize this so this fits better.
I am going to go to my Button panel and convert it to a button. I don't need to add any appearance because I want this to be invisible. We're going to name the button sound hot spot. We're going to add an action on the event, Roll Over. On Roll Over we are going to go to Sound and it's going to find the liveSpread_flies.mp3, and we're going to choose Play. We're going to add the event On Roll Off and add the action Sound, Stop.
This way when we mouse over the button the sound begins and when you mouse away it stops. Let's preview. We have the animation with our flies, and as I mouse over, (Bzzz. Flies buzzing.) it begins and when I mouse away it stops. Creating a sound hotspot adds another dimension to your document which can be a lot of fun. Be careful not to add audio files that are too long because when the user moves away the audio will stop.
Get unlimited access to all courses for just $25/month.Become a member
119 Video lessons · 50107 Viewers
117 Video lessons · 37453 Viewers
113 Video lessons · 81230 Viewers
65 Video lessons · 10751 Viewers
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.
Your file was successfully uploaded.