easy fixes are nice but are not flexible, now look what applied maths student can suggest you sldMovArea = sld_background.width - sld_knob.width; sliderValue = (sld_knob.x/sldMovArea) * 100;
like this you can change slider width from code regardless what's your slider knob and slider background width is
But I've a problem with the MOUSE_OUT. I'm "loosing" the knob so often, that I have to cut this listener, but then the release of the knob is very unstable (works only if I release the mouse button on the knob). Do you have a hint for this?
That makes it so that after you click and begin sliding you can have your cursor anywhere on the stage and it will still control the volume, until you stop pressing the button.
Adammmm, this was a slick tutorial with lots of options for customization. How do you feel about javascript sliders? (btw your voicesat the beginning killed me lol)
Cool tutorial dude keep them coming on this subject as its really inspiring me and im getting to grips learning this script language as i always have said i like to watch anmd learn from you as the info gets sunk in and you make me a better web developer everyday i watch your vids so keep up all the hard work you do man it is gratefully appreciated
hahaha this is awesome
well explained and with some humor
anotherwaytodoit 2 weeks ago in playlist Flash ActionScript 3.0 Components Programming tutorials
very good video, helped me a lot today :)
monkeyah 1 month ago
easy fixes are nice but are not flexible, now look what applied maths student can suggest you sldMovArea = sld_background.width - sld_knob.width; sliderValue = (sld_knob.x/sldMovArea) * 100;
like this you can change slider width from code regardless what's your slider knob and slider background width is
sjeine19 2 months ago
you don't have to define what type of variable boundWidth is?
IceCubeVideos 2 months ago in playlist Flash ActionScript 3.0 Components Programming tutorials
Much better than this tutvid faggot
TheChinization 2 months ago
This has been flagged as spam show
"However many pixels wide your knob is, is how many pixels you overcompensate for."
top youtube quote! Great tut too :)
theacrossell 4 months ago
Comment removed
theacrossell 4 months ago
YOU ROOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOCK!!!!!!!!!!!
ShallonesS 5 months ago
u are funny=D
MotaDabba 7 months ago
Lol. Once you started talking about the YouTube slider thing I started playing with the volume
AS3Ninja 7 months ago
Thank you for making your tutorials easy to understand and thuroughly entertaining. I wish more people could make flash tutorials like you.
ethertype 9 months ago
Thumbs up if you love this guys tutorials and voice :D
Samzsite 9 months ago
How do I simply tie a drag to the y axis, for a simple up and down unlimited drag?
MythOfEchelon 10 months ago
Very nice tutorial!
But I've a problem with the MOUSE_OUT. I'm "loosing" the knob so often, that I have to cut this listener, but then the release of the knob is very unstable (works only if I release the mouse button on the knob). Do you have a hint for this?
KoljaLauterbach 11 months ago
@KoljaLauterbach
Here's the solution to the problem, I'm so proud of myself for figuring this one out :P
replace:
sliderKnob.addEventListener(MouseEvent.MOUSE_OUT, stopDragging);
with:
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
That makes it so that after you click and begin sliding you can have your cursor anywhere on the stage and it will still control the volume, until you stop pressing the button.
Clone604 8 months ago
Could you please extend the tutorial and show how to make the sliderknob only jump tickIntervals (like 10, 20, ...)? Thx
echelon089 11 months ago
I like your videos cause you're actually funny. I get a good laugh and learn a lot! Please don't ever stop making tutorials.
VegaOmega23 11 months ago
HEY, THESE AREN'T BITE SIZED HAMBURGERS !?!?!?!?!
1161858 11 months ago
You have new subscriber :)
MinDControlDx 11 months ago 13
Dude, Thanks for these. Even though I don't need this for a reason. I still watch whole thing. XD
Dyl89cp 11 months ago 4
Wow, These tutorials seem to be getting more... weird :D LOVIN IT!
RyanteGamer 11 months ago
i think its imposible to create this in javascript/jquery....
cayik4 11 months ago
@cayik4 No it's not.
tintinexpressen 11 months ago
I've done this before for volume controls in games. My code was less organized though. Thanks for the video.
GeorgeLRockwell87 11 months ago
Adammmm, this was a slick tutorial with lots of options for customization. How do you feel about javascript sliders? (btw your voicesat the beginning killed me lol)
sakuraness 11 months ago
Most excellent ! I am getting smarter, stronger, faster, and sexier.
MrShawnlloyd 11 months ago
Cool tutorial dude keep them coming on this subject as its really inspiring me and im getting to grips learning this script language as i always have said i like to watch anmd learn from you as the info gets sunk in and you make me a better web developer everyday i watch your vids so keep up all the hard work you do man it is gratefully appreciated
puggsy21 11 months ago
Finnally! I've searched for tis for weeks! Thanks for uploading!
frietjericcardo 11 months ago 3