# Multiple setPans on a frame

**URL:** <https://forum.kirupa.com/t/multiple-setpans-on-a-frame/187615>\
**Category:** Uncategorized\
**Created:** [May 1, 2006, 12:17am UTC](https://forum.kirupa.com/t/multiple-setpans-on-a-frame/187615 "2006-05-01T00:17:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![willgoldstone7](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/willgoldstone7/32/2251_2.png) [@willgoldstone7](https://forum.kirupa.com/u/willgoldstone7)\
**Post date:** [May 1, 2006, 12:17am UTC](https://forum.kirupa.com/t/multiple-setpans-on-a-frame/187615/1 "2006-05-01T00:17:14Z")

</div>

hi, i have declared 3 sound objects in my root:

pickgit = new Sound();  
pickgit.attachSound(“pickgit”);  
pickgit.stop(“pickgit”);

and am calling them from another mc:

var soundonce:Boolean = false;  
function runpick() {  
\_root.pickgit.start(0, 100);  
}  
function runslow() {  
\_root.slowgit.setPan(100);  
\_root.slowgit.start(0, 100);  
}  
function runslower() {  
\_root.slowergit.setPan(-100);  
\_root.slowergit.start(0, 100);  
}  
onEnterFrame = function () {  
if (\_currentframe\>=321 && \_currentframe\<=1301) {  
if (soundonce == false) {  
runpick();  
runslow();  
runslower();  
soundonce = true;  
}  
}  
}

problems are arising with the fact that i am setting the pan of two different sounds and it is causing it to default to -100. does anyone know why this is? and is there a solution other than putting each sound in an mc?  
cheers
