I have always been using this code
onClipEvent(load)
{
_root.mySound = new Sound();
maxvolume=100;
minvolume=0;
}
onClipEvent(enterFrame)
{
if(_root.soundstatus=="on") {step=3}
if(_root.soundstatus=="off") {step=-3}
maxvolume+=step;
if (maxvolume>100) {maxvolume=100;}
if (maxvolume<0) {maxvolume=0;}
_root.mySound.setVolume(maxvolume);
}
to control the on/off function of the background music.
Ever since I upgraded to Flash Pro 8 this code has given me problems. The music doesn’t play at all.
I know the problem might be the onClipEvent(enterFrame), but I can’t figure out how to solve it.
Does anyone has a solution to this problem?