Buongiorno a tutti
Dovrei caricare 3 mp3 in un filmato, ho messo questo codice che ho trovato qui, in locale funziona tutto e online invece non si sente.
Questo è il codice:
this.suono = new Sound();
this.suono.path = this;
this.suono.onLoad = function(ok) {
if (ok) {
this.start(0, 999);
this.path.campoDiTesto.text = "";
delete this.path.onEnterFrame;
}
};
startPreload = function (track) { this.suono.stop();this.suono.loadSound(track, false);this.path.campoDiTesto.text = "Loading Sound...";this.onEnterFrame = function() {var car = this.suono.getBytesLoaded();var tot = this.suono.getBytesTotal();var per = Math.round((car/tot)*100);};};
Nei bottoni:
on (release) {
startPreload("music3.mp3");
}
qualcuno sa darmi una mano?
grazie![]()

Rispondi quotando
