# Controlling volume in a Flash Slide Show

**URL:** https://forum.kirupa.com/t/controlling-volume-in-a-flash-slide-show/260777
**Category:** flash
**Created:** [May 19, 2008, 7:49pm UTC](https://forum.kirupa.com/t/controlling-volume-in-a-flash-slide-show/260777 "2008-05-19T19:49:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![koobifora](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@koobifora](https://forum.kirupa.com/u/koobifora)
#### Post date: [May 19, 2008, 7:49pm UTC](https://forum.kirupa.com/t/controlling-volume-in-a-flash-slide-show/260777/1 "2008-05-19T19:49:45Z")

</div>

Hello,

I am working in Flash Slide Presentation mode. I have a started a sound file playing on the “master” slide and I want it to play throughout my entire presentation. However, on a couple of slides, I want to play some short voice clips. How can I “turn down the volume” a bit on the main sound file so as to hear the short voice clips? And then turn it back up when the voice clip ends?

I understand basic Actionscript. Can anyone tell me the code or point me to a tutorial which I can use to accomplish this?

Thanks in advance.  
 ![](http://www.kirupa.com/forum/styles/kirupaProblue/statusicon/user_online.gif) [![](http://www.kirupa.com/forum/styles/kirupaProblue/buttons/report.gif)](http://www.kirupa.com/forum/report.php?p=2326227) ![](http://www.kirupa.com/forum/styles/kirupaProblue/misc/progress.gif)

---

<div class="post-metadata">

### Author: ![rolando\_lopez](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@rolando\_lopez](https://forum.kirupa.com/u/rolando_lopez)
#### Post date: [May 19, 2008, 7:54pm UTC](https://forum.kirupa.com/t/controlling-volume-in-a-flash-slide-show/260777/2 "2008-05-19T19:54:22Z")

</div>

If slides are different then “regular” flash files this may not work.  
You would set up a Sound object and then you can change the volume using setVolume.  
Is that master sound file connected to a movieclip?

```auto

var s:Sound = new Sound(this.createEmptyMovieClip());
s.load(*nameofsound.mp3*);
s.setVolume(30);

```
