A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: sound volume

  1. #1
    Member
    Join Date
    May 2002
    Posts
    68
    is it possible to change the volume of only one sound file or part of one sound file inside flash without using any external programs? thanks.

  2. #2
    Senior Member
    Join Date
    May 2002
    Location
    Sioux Falls, SD
    Posts
    1,155
    give your sound the id name sound1

    in your frame put
    Code:
    newsound = new Sound();
    newsound.attachSound("sound1");
    to start the sound
    Code:
    on (release) {
        newsound.start();
    }

    on your volume button put
    Code:
    on (release) {
        newsound.getVolume();
        newsound.setVolume(20);
    }
    0 is mute and 100 is max volume

  3. #3
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Good one !!

    Here's a great soundObject tutorial:

    http://www.kennybellew.com

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