![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/03/2009, 14:28
|
![Avatar de Diegoazul](http://static.forosdelweb.com/customavatars/avatar184067_90.gif) | | | Fecha de Ingreso: mayo-2007 Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 17 años, 8 meses Puntos: 67 | |
Respuesta: Mostrar nombre de musica que se esta reproduciendo Asi es:
Código:
var lista:Array = new Array("cancion_1.mp3", "cancion_2.mp3");
sonidoreproductor = new Sound();
sonidoreproductor.loadSound(lista[0],true);
var i:Number = 0;
cancion.text = lista [i] ;
sonidoreproductor.onSoundComplete = function() {
i++;
cancion.text = lista [i] ;
if (i>=lista.length) {
i = 0;
}
sonidoreproductor.loadSound(lista[i],true);
};
|