Comunidad de diseño web y desarrollo en internet online

Como hago para decirle que siga a la siguiente cancion?(mp3)

Citar            
MensajeEscrito el 08 Feb 2008 11:12 pm
Hola muchahcos. Tengo un reproductor Mp3 que carga aleatoriamente un tema de una lista que tengo en un .txt. Tiene boton de play pause nest track y previous track. El problema q tengo es q cuando termina una cancion no comienza otra (ni aleatoriamente ni por orden de lista). Que puedo hacer? les dejo el codigo

saludos

Código :

var snd_1 = new Sound(this);
playingBar._xscale = 0;
loadingBar._xscale = 0;
stop ();
vol_set.gotoAndStop(volWhat);
statusit = "";
statusroot = "D O W N L O A D I N G";
FF = 0;
snd_1.loadSound(dat[tune][0], true);
var nProgressID = setInterval(function ()
{
    showtext.textit.testme = dat[tune][1] + " - " + dat[tune][2] + statusit;
}, 100);
var nProgressIDA = setInterval(function ()
{
    bytesload = snd_1.getBytesLoaded();
    bytestotal = snd_1.getBytesTotal();
    d = Math.round(snd_1.position / 1000);
    e = snd_1.duration / 1000;
    f = d / e;
    c = bytesload / bytestotal * 100;
    fA = f * 100;
    cA = c / 100;
    g = cA * fA;
    playingBar._xscale = g/2;
    pointmain._x = 19 + playingBar._width;
    loadingBar._xscale = c/2;
    if (d > 1.000000E-002)
    {
        statusit = "";
        statusroot = "T O C A N D O";
        if (c < 9.990000E+001)
        {
            downStat = "";
            if (TT)
            {
                statusroot = "P A U S A D O";
            }
            else
            {
                statusroot = "T O C A N D O";
            } // end else if
        }
        else
        {
            downStat = "";
            if (TT)
            {
                statusroot = "P A U S A D O";
            }
            else
            {
                statusroot = "T O C A N D O";
            } // end if
        } // end else if
    } // end else if
}, 100);
var nProgressIDB = setInterval(function ()
{
    min = Math.floor(d / 60);
    if (min < 10)
    {
        timeit = "0" + Math.floor(d / 60) + " :";
        if (min > 9.900000E-001)
        {
            FF = Math.floor(d / 60) * 60;
        }
        else
        {
            FF = 0;
        } // end else if
        GG = d - FF;
        if (GG < 10)
        {
            timeit2 = "0" + GG;
        }
        else
        {
            timeit2 = GG;
        } // end else if
    }
    else
    {
        timeit = Math.floor(d / 60) + " :";
        if (min > 9.900000E-001)
        {
            FF = Math.floor(d / 60) * 60;
        }
        else
        {
            FF = 0;
        } // end else if
        GG = d - FF;
        if (GG < 10)
        {
            timeit2 = "0" + GG;
        }
        else
        {
            timeit2 = GG;
        } // end else if
    } // end else if
}, 100);
var nProgressIDC = setInterval(function ()
{
    PP = dat.length - 2;
    if (tune == PP)
    {
        tuneA = 0;
        nextsong.text = tune + 1 + "/" + (dat.length - 1);
    }
    else
    {
        nextsong.text = tune + 1 + "/" + (dat.length - 1);
    } // end else if
}, 100);

Por nukerojo

17 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Feb 2008 09:17 pm
Nadie?

Por nukerojo

17 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Feb 2008 09:51 pm
yo también había hecho algo como eso antes y para hacerlo utilicé onSoundComplete... los nombre de las canciones las cargaba desde un TXT también y las incruste a un array.

Saludos!!!

Por vcomics

217 de clabLevel



 

Medellin - Colombia

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.