A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Volume Control with a Slider

  1. #1
    Junior Member
    Join Date
    Jan 2005
    Location
    Singapore
    Posts
    2

    Volume Control with a Slider

    Hi,

    I am using Flash MX 2004. A moderate user. I am building my new website just to learn more about Action Scripts.

    Does anyone know how to apply "Volume Control" with a slider/nob? If there is already an existing tutorial here (Flashkit)...can you please point me there?

    All advice and help very, very much appreciated!!!

    Thank you.

    warmest regards,
    sosurvivor

  2. #2
    Senior Mender trionik's Avatar
    Join Date
    Nov 2000
    Location
    Montréal,Canada
    Posts
    1,077
    You have to use a simple startDrag() and stopDrag()

    The position of your slide bar give you the value of the volume.

    So let say your bar is 200 of width

    var volume = (slider._x * 100)/200

    remember that the width of your bar is minus the width or your slider

  3. #3

  4. #4
    Junior Member
    Join Date
    Jan 2005
    Location
    Singapore
    Posts
    2

    Thank you guys...oops or gals!!!

    Wow...thank you so much! I have scripts coming out of my ears.

    I am new to this site. And I found a tutorial close to what Trionik suggested....am trying out this instance.

    This is a beli (very) helpful site indeed!

    Thanks again...

    warmest regards,
    sosurvivor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center