Hi there,
I have this script in my movie which fades a sound up in volume.
[AS]loopOne = new Sound();
loopOne.attachSound(“busyPub”);
loopOne.start(0,99);
loopOne.setVolume(0);
var volStart:Number = 0;
function fadeUpMusic(){
this.onEnterFrame = function(){
if (volStart <= 49){
volStart++;
loopOne.setVolume(volStart);
} else {
loopOne.setVolume(50);
this.onEnterFrame = null;
}
}
}
fadeUpMusic();[/AS]
It works fine by itself. The issue is that I’m loading it into another MC, and when I do, it doesn’t work? Is it something to do with the ‘this.onEnterFrame’ code? Any help would be appreciated