| | CARICARE SUONI ESTERNAMENTE, Winamp, (lettore musicale)... | |
| |
| | |
| max_400 |
| | CARICARE SUONI ESTERNAMENTE AL FILMATO
var my_sound:Sound = new Sound(); // creazione oggeto Sound my_sound.loadSound("amico.mp3", true); // eseguo il suono in streaming
------------------------------ oppure da un indirizzo-------------------------
my_sound.loadSound("http://riccardo007.altervista.org/amico.mp3", true); // eseguo il suono in streaming
NB.: Se la canzone e lunga attendere qualke minuto attenzione a non lasciare spazi
l'opzione true significa che la musica viene caricata subito invece false bisogna attendere il caricamento "completo" della canzone e poi viene riprodotta per evitare di sentirla a tratti.
---oppure a suono completato inizia la prossima canzone---------------------
var my_sound:Sound = new Sound(); // creazione oggeto Sound var my_sound2:Sound = new Sound(); // creazione oggeto Sound
my_sound.loadSound("amico.mp3", true); // eseguo il suono in streaming my_sound.onSoundComplete = function() { // QUANDO il suono finisce la riproduzione my_sound2.loadSound("tatata.mp3", true); // riproduco il 2 suono };
---oppure a suono completato inizia la prossima canzone dal web --------
var my_sound:Sound = new Sound(); // creazione oggeto Sound var my_sound2:Sound = new Sound(); // creazione oggeto Sound
my_sound.loadSound("http://riccardo007.altervista.org/amico.mp3", true); // eseguo il suono in streaming my_sound.onSoundComplete = function() { // QUANDO il suono finisce la riproduzione my_sound2.loadSound("http://riccardo007.altervista.org/tatata.mp3", true); // riproduco il 2 suono };
Edited by max_400 - 1/5/2009, 02:42
| | |
| |
|
| 0 replies since 26/4/2009, 17:04 74 views |
| |
| | |