Volume & pan AS

Hi,

I have a project I am working on that requires a volume slider and balance controls and while I know the code I need to use to make them functional what I don’t know is the code to do something like this:

I want to make a volume slider like this.

[color=red]||||[/color]|||||||||||

so that when the user drags their mouse over the bars or presses the up key on the keyboard they change from black to red and the volume increases accordingly.

For the balance control I would like pretty much the same thing except I want to use the left and right keyboard keys and the drag event as described above and I want it to look like this.

||||||[color=yellow]|[/color][color=orange]|||[/color][color=red]|||[/color] (which means the balance is all the way to the right)

I am pretty much a newbie when it comes to this kind of thing so the more help you can offer the better and thanks for any replies in advance.

http://www.flashkit.com/tutorials/Audio/Flash_MX-Kenny_Be-824/

that explains everything about sound…

been there done that … does not explain what I need to do for my situation.

Here. I did this because I wanted to know if I could. I think it may help you. I got these actionScripts from a website known as Kirupa.com. The number that shows up can be tied into your sounds’ volume. To learn how to do this, visit the site that Jubba had pointed out. …Or post again if you get stuck. Good luck! Hope it helps (and isn’t to noobian).