# TweenMax Volume

**URL:** <https://forum.kirupa.com/t/tweenmax-volume/293806>\
**Category:** flash\
**Created:** [August 4, 2009, 7:07am UTC](https://forum.kirupa.com/t/tweenmax-volume/293806 "2009-08-04T07:07:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colouredFunk](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@colouredFunk](https://forum.kirupa.com/u/colouredFunk)\
**Post date:** [August 4, 2009, 7:07am UTC](https://forum.kirupa.com/t/tweenmax-volume/293806/1 "2009-08-04T07:07:58Z")

</div>

Hello, I am trying to fade out some audio, using the code below, but I keep getting this error -

ReferenceError: Error #1069: Property volume not found on flash.media.Sound and there is no default value.  
at gs::TweenLite/initTweenVals()  
at gs::TweenMax/initTweenVals()

* * *

public function AudioStream(url, loop:Boolean = false)  
{  
\_sound = new Sound();  
var req:URLRequest = new URLRequest(url);  
var context:SoundLoaderContext = new SoundLoaderContext(8000, true);  
\_sound.load(req, context);  
if (loop) {  
\_sound.play(0, int.MAX\_VALUE);  
} else {  
\_sound.play();  
}  
}

public function stop()  
{

TweenMax.to(\_sound, 1, {volume:0, onComplete:stopAudio});  
}
