# Urgently requesting help

**URL:** <https://forum.kirupa.com/t/urgently-requesting-help/301271>\
**Category:** Uncategorized\
**Created:** [December 6, 2009, 5:49pm UTC](https://forum.kirupa.com/t/urgently-requesting-help/301271 "2009-12-06T17:49:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faz22](https://avatars.discourse-cdn.com/v4/letter/f/d6d6ee/32.png) [@Faz22](https://forum.kirupa.com/u/Faz22)\
**Post date:** [December 6, 2009, 5:49pm UTC](https://forum.kirupa.com/t/urgently-requesting-help/301271/1 "2009-12-06T17:49:46Z")

</div>

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 ☹ 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
