hi.. ich seh wahrscheinlcih den wald vor lauter baeumen nihct...

ich habe verschiedene sounds, die ich gegeneinander ausfaden möchte( immer nur zwei gleichzeitig), der wechsel klappt soweit, aber die volume "zickt" rum bzw bleibt stehn ... was ueberschreibt sich da?
oder blockiert sich?
danke.. *verweifel
ActionScript:
_global.currentSound=sound1; //mc
var nextOne = null;
MovieClip.prototype.startSound=function()
{
trace("startsound : " +_global.currentSound);
//damits nicht mehrfahc aufegrufen wird
if(!this.playing)
{
_global.currentSound=this.s;
_global.currentSound.start(0,1);
_global.currentSound.onSoundComplete=function()
{
_global.currentSound.start();
}
this.playing=1;
}
}
MovieClip.prototype.stopSound=function()
{
trace("stopsound : " + _global.currentSound)
if(this.playing)
{
this.s.stop();
this.playing=0;
}
}
function lowerVolume()
{
this.vol--;
_global.currentSound.setVolume(this.vol);
if(this.vol<=0)
{
_global.currentSound.stopSound();
_global.currentSound=nextOne;
_global.currentSound.startSound();
this.onEnterFrame = raiseVolume;
}
}
function raiseVolume()
{
trace("volume: " + this.vol);
this.vol=_global.currentSound.getVolume();
this.vol++;
_global.currentSound.setVolume(this.vol);
if(this.vol==100)
delete this.onEnterFrame;
}
function setSound(nextSound)
{
trace("setSound : " + nextSound);
nextOne = nextSound;
this.vol=_global.currentSound.getVolume();
this.onEnterFrame=lowerVolume;
}
//aufgerufen wirds dannso:
setSound(sound2)
;