hi i have a button that plays a sound when you roll over it but is there a way i can get this sound to loop until you rollout?
also when i rollover it repeats x2 but if i rollover while its playing it starts another sound so its doing 2 at once is there a way to avoid this ?
this is my codes
Home.onRollOver = function() {
clickMe();
}
function clickMe() {
// Simple basic structure of a sound called from library
sfx = new Sound();
// Calls the “click02.mp3” that linked as “click” from the library through the linkage option
sfx.attachSound(“click”);
// Like car’s engine, you need to ask it to ‘start’ for it to work.
sfx.start(0,2);
}