I have 4 sounds, named and linked by the names sound1, sound2, sound3, sound4. I want a button that changes those loops on the click of it. The button has this script:
on (press) {
_root.number=_root.number+1;
if (_root.number==4) {
_root.number = 1;
trace (_root.number);
}
_root.Sound.loop.stop();
_root.Sound.loop.attachSound(“loop”+_root.number);
_root.Sound.loop.start(0, 999);
}
Uhh…it doesn’t work. Can anyone tell me why and post one that will work? Thanks a lot.