I am trying to teach myself actionscript, but with my basic knowledge this one has me stumped.
- I have a main.swf that loads external swfs.
I am trying to stop the background music when one loads a specfic swf, and start the music when one leaves that swf. Here’s the code I came up with, but it doesn’t work.
if(_root.section = “dj.swf”) {
_root.music.bgSound4.stop();
} else if (_root.section != “dj.swf”) {
_root.music.bgSound4.loadSound(“Communication.mp3”, true);
bgSound4.start(0,99);
}
I want to be able to listen to samples of the djs without overlapping the background music.
Please help.