I am loading small sounds dynamically with the loadSound command. These small sounds are activated with a rollover. see script below. This works ok.
however. i want the first sound to keep playing while the rollovers load sound. a bit like playing the piano.
This works ok when i import all the sounds into the library and place them on their very own button. however the size of the flash movie increases to 140k. whereas when i load them dynamically the size of the movie is 20k. obviously i want to load dynamically.
But with dynamic loading each sound stops when another sound is rolled over, so that there is only ever one sound playing at once. I need to load the sound into a different level or something, so that the first sound can keep going while the smaller, shorter sounds play over the top.
this is my script below. The first sound loads when the movie starts. This is the one i want to keep playing. Then there are the smaller ones with rollovers. does this make any sense? there’s actually 13 little sounds. can anyone help? thanks for any assistance. m
sd = new Sound();
sd.loadSound(“philSound.mp3”,true);
sd.start(0,1);
buses.onRollOver = function() {
sd = new Sound();
sd.loadSound(“buses.mp3”,true);
sd.start(0,1);
}
corners.onRollOver = function() {
sd = new Sound();
sd.loadSound(“corners.mp3”,true);
sd.start(0,1);
}