Flash as3 sound class moving sound

Flash as3 sound class moving sound
package 
{

	//Class extends MovieClip
    import flash.display.MovieClip;
    //Needed for our Buttons and Complete Events
    import flash.events.MouseEvent;
    import flash.events.Event;
    //Needed for standing Wave Library
    import flash.media.Sound;
    import com.noteflight.standingwave3.elements.*;
    import com.noteflight.standingwave3.filters.*;
    import com.noteflight.standingwave3.formats.*;
    import com.noteflight.standingwave3.generators.*;
    import com.noteflight.standingwave3.modulation.*;
    import com.noteflight.standingwave3.output.*;
    import com.noteflight.standingwave3.performance.*;
    import com.noteflight.standingwave3.sources.*;
    import com.noteflight.standingwave3.utils.*;

	public class Main extends MovieClip
	{

		var sinewavePlayer:AudioPlayer = new AudioPlayer();
		var sinewave:IAudioSource;

		public function Main()
		{
			// constructor code
			addButtonListeners();

		}

		private function addButtonListeners():void
		{
			//sinewave_play_btn.addEventListener(MouseEvent.CLICK,playSinewave);
			//sinewave_stop_btn.addEventListener(MouseEvent.CLICK,stopSinewave);
			stage.addEventListener(MouseEvent.MOUSE_MOVE,stageSinewave);
		}
		
		private function stageSinewave(e:Event):void
		{
			
			trace(mouseX);
			sinewave = new SineSource(new AudioDescriptor(),0.09,mouseX,0.2);
			sinewavePlayer.addEventListener(Event.SOUND_COMPLETE,onPlaybackComplete);
			sinewavePlayer.play(sinewave);
			
		}

		private function playSinewave(e:Event):void
		{
		
			e.target.enabled = false;
			sinewave = new SineSource(new AudioDescriptor(),1,40,0.1);
			sinewavePlayer.addEventListener(Event.SOUND_COMPLETE,onPlaybackComplete);
			sinewavePlayer.play(sinewave);
		}

		private function onPlaybackComplete(e:Event):void
		{
			trace('complete');
			//sinewave_play_btn.enabled = true;
		}
		private function stopSinewave(e:Event):void
		{
			sinewavePlayer.stop(sinewave);
			sinewave = null;

		}
	}

}