How can i set specific sound effects to a specific vol ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luke
    New Member
    • May 2012
    • 14

    How can i set specific sound effects to a specific vol ?

    // I have a variable set

    var vol = 0.25;

    this var changes on demand and works fine.

    In my flash game I have some sound effects on movieclips that sound only when the movie clips are being played.

    I would like to set all of my sound effects to the same volume in one as3 file.

    Although I have my sounds playing in my timeline on as3, is there a way to get all of my sounds together on one as3 file to set them all to my specific volume.

    I was thinking something like....

    Code:
    var isSoundOn = true;
    
    if( isSoundOn == true ){
    
        // get all sounds that i would like to change volume on
        // if in game play and any of the sound effects are ready - play all these sounds with my specific volume setting.
    I am also using flashDevelop to write most of my as3 and i would like to change the volume here. Thanks

    }
    Last edited by Rabbit; Dec 20 '13, 04:41 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
Working...