hi, i’m having a problem with my roll over sound
** heres whats up:** the sound plays the 1st time its rolledover but not second time.
** heres what i have:** 4 buttons with 4 sounds
** code: **
on frame #
///////Sound A///////
** _root.SchlubS = new Sound();
_root.SchlubS.attachSound(“Schlub01”);**
///////Sound B///////
** _root.CiavoS = new Sound();
_root.CiavoS.attachSound(“Ciavo01”);**
///////Sound C///////
** _root.ChimeS = new Sound();
_root.ChimeS.attachSound(“chime01”);**
///////Sound D///////
** _root.DoorbellS = new Sound();
_root.DoorbellS.attachSound(“Doorbell01”);**
on Button A,B,C,and D(just different names where (SchlubS) is)
///////Sound A///////
on (rollOver) {
if (_root.playing != 1) {
if (SchlubSPosition == null) {
SchlubSPosition = 0;
}
_root.SchlubS.start(schlubPosition, 0);
_root.playing = 1;
} else {
if (_root.playing == 1) {
SchlubSPosition = _root.SchlubS.position/1000;
_root.SchlubS.stop();
_root.playing = 0;
}
}
}
** what i want to happen:** when you roll ove Button A it plays untill you enter B,C, or D than that sound plays. but… i dont want C or D to loop, just A and B
Please help me , thank you