Come dicevo ieri, ho realizzato un semplice player mp3. Ieri l'avevo realizzato con streaming, con il seguente codice.
Nel primo frame (sullo stage pulsante stop_btn):
codice:
stop();
var my_sound:Sound = new Sound();
my_sound.loadSound("loop.mp3", true);
stop_btn.onRelease = function() {
trace("sound stopped");
my_sound.stop();
_root.gotoAndPlay(2);
};
Nel secondo frame (sullo stage pulsante play_btn):
codice:
stop();
play_btn.onRelease = function() {
trace("sound started");
my_sound.start();
_root.gotoAndPlay(1);
};
Come vedete la variabile isStreaming è uguale a "true", quindi l'mp3 viene caricato in streaming appunto, e tutto va benissimo.
Oggi mi hanno chiesto però di togliere lo streaming, e io ho messo "false", come dicono anche nella guida ufficiale, ma così facendo il player non funziona più!!! Non capisco perchè!!!