Buon giorno
Ho inserito questo codice in un filmato per mettere mp3 come sfondo:
onClipEvent (load) {
function carica(num_loop) {
suono = new Sound();
_root.scritta = "Loading ...";
suono.onLoad = function(success) {
if (success) {
this.start(0, 999);
_root.scritta = "Loaded !!";
}
};
suono.loadSound("pippo.mp3", false);
}
_root.loop.carica("loop2");
}
nel bottone stop : on (release) {
_root.loop.suono.stop();
}
nel bottone play : on (release) {
_root.loop.suono.start(0, 999);
}
Il problema è che dovrei inserire tre mp3 e mettendo quel codice si accavallano, come fare?
grazie![]()