I’m trying to fade in a sound that I am using as a background sound for a website. However, I can’t get the actionscript code right to complete the fade. Can anyone see the problem?
bgsound = new sound();
bgsound.attachSound(“bgsound1”);
bgsound.start(0, 1000);
bgsoundvolume = 0;
while (bgsoundvolume<100) {
bgsound.setVolume(bgsoundvolume);
bgsoundvolume = bgsoundvolume+5;
}