Return to Snippet

Revision: 27652
at June 18, 2010 23:37 by sidneydekoning


Initial Code
// clipping values for volume
function set volume( value:Number ):void {
    _soundTransform.volume = Math.min(Math.max(value, 0), 1);
}

Initial URL

                                

Initial Description
This can be used for equations, volume, movement etc

Initial Title
Clipping values to stay between 0 and 1

Initial Tags

                                

Initial Language
ActionScript 3