Volume control :: Sound Slider in Flash!! – Flash Tutorial
Flash Tutorials
27th Feb 2010
25 Comments »
FULL VIDEO: www.tutvid.com This video was somehow automatically shortened by Youtube in Feb. of 2009. Instead of taking it down I decided to simply include a link to the full video on tutvid.com. Create this Volume slider quickly and easily! Have fun!


That’s just it, it’s a variable name. You can name that whatever you want as long as its consistent with every place the guy put mySong
@disturbanite80 Good point.
Where did he name the song variable “mySong”?
i didn’t forget to introduce the name of the instance of “reproductor” movieclip after “_root.” and play and stop button works…
however, slider of volume doesn’t it. I guess that is for the last fragment of code…
if you make all that inside a movieclip instead of right into scene, it doesn’t work…
how could i change the code:
slider_1.onMouseMove = function() {
newPoint = new Object();
newPoint.x = this._x
newPoint.y = this._y
_root.reproductor.groove_1.globalToLocal(newPoint);
_root.reproductor.mySong.setVolume(-1*newPoint.x);
}
?????
So i think that the problem is there…
If your video is only 19 Seconds long then go to a couple of videos in the desc and then come back to this one and it should be 19minutes again.. worked for me
Also great tutorial
Thank you, i will copy the AS so i can re use it some other time
right turn off hq/hd
thanks!!!
Good Job. Its AS2 guys, so select the proper settings in your IDE.
Whether it works for u or not it’s irrelevant as this guy put some time into teaching something cool.
What I’d like better explained though is the globalToLocal and that (-1*newPoint.x). Will a simple var x:Number = w/e; approach work here?
Anyway, a good amount of not just basics are taught here for FREE so tutvid deserves at least the community’s appreciation.
Thx tutvid, gj.
WTF !?!?! CUTS OF AT 0:19 !!!!
if ur using cs4, when you link the sound you have to right click it in the library, slect properties, and in the bottom right hand corner of the properties window click on “ADVANCED” and the Linkage panel will pop up below.
the asterix key *
yea i have cs4, and the script didnt work and i assume thats why, so if you get on your youtube account and read this please help a fellow nerd out.
I just got a glitch when I’m double click the slider and then I cant go back.
Where can i download that files?^^
Could I know what the use of snapping??
from philippines
2:47 XD
This is good. I’m trying to use AS3.0 as much as possible, so I’d probably create the eventListeners in lieu of onRelease for the functions.
i seriously dont get these things…? it says dont read this and then it says tommorow will be the best day of your life -.- seriously makes no sense :/
Thanks tons.
Questions.
I want my video (separate from audio) AND my audio to play at start of the Flash.
How do I get the audio to start and still control it?
Thanks in advance.
“and what key did you use for times on the set volume part ?”
yo me estoy preguntando lo mismo! que símbolo usas cuando haces el “setVolume”?? Después del -1 y antes de newPoint_x
Por favor contestame que me vuelvo loco!!
and what key did you use for times on the set volume part
um is it posible to maek 4 songs playing at once
don’t make yourself too hard.
PLEASE DONT READ THIS. YOU WILL GET KISSED ON THE NEAREST POSSIBLE FRIDAY BY THE LOVE OF YOUR LIFE. TOMORROW WILL BE THE BEST DAY OF YOUR LIFE. HOWEVER IF YOU DONT POST THIS COMMENT TO AT LEAST 3 VIDEOS YOU WILL DIE WITHIN 2 DAYS. NOW UV STARTED READIN DIS DUNT STOP THIS IS SO SCARY.Ã�Â&mac r;ÃÂ�»& Atilde;Â�¿ SEND THIS OVER TO 5 VIDEOS IN 143 MINUTES WHEN UR DONE PRESS F6 AND UR CRUSHES NAME WILL APPEAR ON THE SCREEN