# \[AS\] Volume Slider

**URL:** <https://forum.kirupa.com/t/as-volume-slider/18118>\
**Category:** flash\
**Created:** [April 13, 2003, 12:27pm UTC](https://forum.kirupa.com/t/as-volume-slider/18118 "2003-04-13T12:27:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voetsjoeba](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Voetsjoeba](https://forum.kirupa.com/u/Voetsjoeba)\
**Post date:** [April 13, 2003, 12:27pm UTC](https://forum.kirupa.com/t/as-volume-slider/18118/1 "2003-04-13T12:27:41Z")

</div>

Hi,

Ok let me break this down to you.

I have seven loops in total. I imported them into the library. i’ve put each of them in a seperate movie clip with the names loop1,loop2,…  
. In those movie clips, the first (key)frame contains the action [COLOR=blue]stop();[/COLOR] . The second frame is a keyframe too and from here on the sound starts. And of course they loop.

Okay, now the buttons to control the movie (Prev, Stop, Play, Next) work fine, but let me explain the system i used. I used a var [COLOR=blue]loopnumber[/COLOR] and everytime you click Next or Prev, it '+'es 1 or '-'es 1. I also set a variable [COLOR=blue]number\_to\_play[/COLOR] = [COLOR=red]"\_root.loop"+loopnumber[/COLOR], so you would get [COLOR=blue]\_root.loop[/COLOR][COLOR=red]–number–[/COLOR], where --number-- is 1,2,3,4,5,6 or 7. To actually play the sound, i used [COLOR=blue]tellTarget([/COLOR][COLOR=red]number\_to\_play[/COLOR][COLOR=blue]) {gotoAndPlay(2)}[/COLOR].  
That’s why i added stop(); to the first frame of those clips.

Ok, that’s about my system, check it at my site [here](http://users.pandora.be/voetsjoeba)

Ok, now my real question : how can i make a volume slider for those sounds inside my movie clips ? I’ve checked this forum already for questions like this but they don’t use the system I use. So i quite need specific help …

Thx, Voetsjoeba

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 13, 2003, 12:33pm UTC](https://forum.kirupa.com/t/as-volume-slider/18118/2 "2003-04-13T12:33:05Z")

</div>

Hi,  
Do you have a problem with the slider or the control of sound?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 13, 2003, 12:35pm UTC](https://forum.kirupa.com/t/as-volume-slider/18118/3 "2003-04-13T12:35:46Z")

</div>

The slider, actually, the control works just fine. It aint there yet, i’m still trying to get it to work offline and then put it online but i couldn’t get it to work

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 13, 2003, 1:12pm UTC](https://forum.kirupa.com/t/as-volume-slider/18118/4 "2003-04-13T13:12:21Z")

</div>

I have a slider example here:  
[http://www.umbc.edu/interactive/fla/streamedsound.swf](http://www.umbc.edu/interactive/fla/streamedsound.swf)  
[http://www.umbc.edu/interactive/fla/streamedsound.fla](http://www.umbc.edu/interactive/fla/streamedsound.fla)  
made in Flash 5 (Though I dont know what you’re using - [AS] doesnt really say much heh, either way this should still work)

should help you start off

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 13, 2003, 5:06pm UTC](https://forum.kirupa.com/t/as-volume-slider/18118/5 "2003-04-13T17:06:17Z")

</div>

Thx dude, it really helped me out 🙂 =)
