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); 