allora... sul mio sito carico un filmato che "gestisce l'audio" con un loadMovie.
Sul primo frame del mio "gestore audio" ho messo lo script di nega:
mySound = new Sound();
mySound.onSoundComplete = function() {
this.start(0, 1);
};
mySound.loadSound("nomePRIMOfileaudio.mp3", true);
In questo filmato.. c'è un MC chiamato "gestore" con dentro 3 bottoni:
il primo ri-avvia la traccia uno con questo script:
on (press) {
this._parent.mySound.onSoundComplete = function() {
this._parent.start(0, 1);
};
this._parent.mySound.loadSound("nomePRIMOofileaudi o.mp3", true);
}
al secondo ho dato questa azione:
on (press) {
this._parent.mySound = new Sound();
this._parent.mySound.loadSound("nomeSECONDOfileaud io.mp3", true);
this._parent.mySound.onSoundComplete = function() {
this._parent.mySound.loadSound("nomeSECONDOfileaud io.mp3", true);
}
}
e al terzo questa:
on (press) {
this._parent.mySound = new Sound();
this._parent.mySound.loadSound("nomeTERZOfileaudio .mp3", true);
this._parent.mySound.onSoundComplete = function() {
this._parent.mySound.loadSound("nomeTERZOfileaudio .mp3", true);
}
}
RISULTATO: In partenza l'mp3 lo suona e lo cicla.
Se premo sui bottoni, gli mp3 selezionati li suona... ma non li cicla... perchè?
Grazie ancora.