Déja pour charger ton son, scénario, image 1 :
var son:Sound = new Sound(this);
son.onLoad = function(success){
if (success){
son.start(0,99999);
} else {
trace ("imposssible de trouver le fichier son");
}
}
son.loadSound("tonMp3.mp3",false);
//bouton ON :
on(release){
stopAllSounds();
var audio = new Sound();
audio.loadSound("tonMp3.mp3",true);
}
//bouton OFF :
on(release){
stopAllSounds();
}
Vite fait à l'arrache, mais ça marche, voilà si ça peux t'aider !
Alise
from flashforum-oi.info
|