PDA

View Full Version : Volume Knob



IQAndreas
December 5th, 2009, 04:01 PM
I still haven't written any documentation for it, but I thought I'd throw this out there in case there is anyone else trying to create the same effect.

Pass in a DisplayObject as the "knob", and when the user holds down the mouse and drags around, the volume will increase when rotated to the right, and decrease when rotated to the left.

It is "continuous", like those digital volume knobs, where you can turn without limit left and right, and even if volume is all the way down to 0, you can still keep turning left etc.

Files stored here:
http://iqandreas.isbetterthanyou.org/VolumeKnob/VolumeKnob.zip
The ZIP contains the class (src/VolumeKnob.as) and one simple example file (src/Main.as) as well as a compiled SWF in the bin directory.


Better description, ASDoc, and examples to come. Refer to comments inside of AS file for more details until then.

Feel free to use and distribute the class freely, but NEVER pass it on as your own work telling others you made it. PLEASE tell me if you end up using it for any projects. It's not a requirement, but it I would like it. :)

Andreas

Intibre09
December 17th, 2009, 11:20 AM
I just wanted to ask someone. I have long since lost my remote on my very old NAD integrated amp and so I have to turn the volume knob manually. I noticed that there is not much sound coming out of the left speaker but when i turn the knob to the second notch, sound comes out of the left speaker. Is it because the inside of the "pot" is dirty? I am planning on buying a new preamp anyways very soon. Does anyone know how to solve this?

IQAndreas
December 17th, 2009, 06:09 PM
I just wanted to ask someone. I have long since lost my remote on my very old NAD integrated amp and so I have to turn the volume knob manually. I noticed that there is not much sound coming out of the left speaker but when i turn the knob to the second notch, sound comes out of the left speaker. Is it because the inside of the "pot" is dirty? I am planning on buying a new preamp anyways very soon. Does anyone know how to solve this?
:lol: I think you have the wrong post, even the wrong forums!

This is a class for Flash/ActionScript which makes a "Volume Knob" that you can drag and turn that looks like anything you want to pass in.

Not sure if you are just a spammer, but you don't seem to have any links in your footer or anything, so I'll assume you are just really lost...