Urgently requesting help

hi there im a little newbie on this whole actionscript scene but i have had a few cracks at it before at the moment i have a project using flash cs3 and as3 heres the problem

im making a page where there are buttons to stop and start multiple sounds which works absolutly fine but i have added code into it where when the mouse moves the sound should pan as well as the volume should move but i get constant errors :frowning: is anyone can help this is highly appreciated

here is the code i am using:

music and buttons:

var music:Sound = new Sound
music.load(new URLRequest(“adagio.mp3”));
var sc:SoundChannel
var isPlaying:Boolean = false;

Button1.addEventListener(MouseEvent.CLICK,stopMusic);

function stopMusic(e:Event):void
{
sc.stop();
isPlaying = false;
}

Button2.addEventListener(MouseEvent.CLICK,playMusic);

function playMusic(e:Event):void
{
if (!isPlaying)
{
sc= music.play();
isPlaying=true;
}
}

this works fine but for the panning and volume it is :

var music;SoundMixer = new SoundMixer();
music = sound.play();

var trans:SoundTransform = new SoundTransform();
this.addEventListener(Event.ENTER_FRAME, onloop, false, 0, true);
function onloop(evt:Event):void {
trans.volume=1 - mouseY / stage.stageHeight;
trans.pan= mouseX / (stage.stageWidth/2) -1;
channelClass.soundTransform = trans;
}

and the error i recieve

1151: A conflict exists with definition music in namespace internal.

any help would be highly appreciated