Flash Tutorial Volume Control Using Custom Sliders In Actionscript 3.0



Lesson 6 of the Actionscript 3.0 Video Textbook for Sound Programming by Adam Khoury. This video shows how to implement custom sliders into Flash for sound volume control purposes. Adding it to the EnterFrame event makes life easy and volume changes are smooth for the user.

source

14 thoughts on “Flash Tutorial Volume Control Using Custom Sliders In Actionscript 3.0”

  1. Hello Adam. Thank you very much for all your tutorials. I finished the custom slider tutorial, came here and this one has other mc objects on stage. Do you have a video tutorial on your playlist where I can learn to implement the slider controlling size, animation, and others? I also went to the website but could not locate the source file there. Thanks again. You are a wonderful teacher!

  2. Thanks, Adam! You and your videos made my projects a megaton easier, and a huge thanks for even having source files on your website. It makes learning all of this so much better. Seriously, you freaking rule, man.

  3. how can i implement this into a round volume slider is that possible? thx a lot for the tutorials there quite helpfull and great job in explaning them!!!!!

  4. hi there i still gave a problem because i added the slider to my radio player but when i run it it show me an error about access to a property i hope you can help me with it

  5. Edit below – realised I made a typo previously in this post.

    Using CS4. I've followed all your Video Textbook vids with no probs except this one. As soon as I entered the "4 lines of code" the slider stops working and I get this error:

    Description: 1120: Access of undefined property volumeSlider.

    Source: var newLevel:Number = volumeSlider.sliderKnob.x / 100;

    Adam or anyone – can you help pls? I wanted to include this for a college assignment.

  6. Using CS4. I've followed all your Video Textbook vids with no probs except this one. As soon as I entered the "4 lines of code" the slider stops working and I get this error:
    Description: 1120: Access of undefined property volumeSlider.
    Source: var newLevel:Numbr = volumeSlider.sliderKnob.x / 100;
    Adam or anyone – can you help pls? I wanted to include this for a college assignment.

  7. instead of the 4 lines you suggest in CS5 works a little bit differently I took me a couple of hours to figure it out and i ended with this code and it works perfectly… if you had the same problem with me…
    var channel:SoundChannel = new SoundChannel();
    var sTransform:SoundTransform = new SoundTransform();

    var newLevel:Number = content_mc.itunes_mc.mySlider_mc.sliderKnob_mc.x/100;//get slider value
    sTransform.volume = newLevel;
    channel.soundTransform = sTransform;

Leave a Reply

Your email address will not be published. Required fields are marked *