Witam odkurzę trochę temat samo stworzenie playerki w Aligatorze nie jest trudne problemy pojawiają się przy chęci dodania playlisty oto kod mojej main frame w programie
mySnd = new Sound(); // create sound object
sndbar._visible = false; // hide the sound bar initally
// onLoad executed when the sound completes to load
mySnd.onLoad = function(){
// set total time in seconds on the display instead of percentage
totalseconds = Math.floor(mySnd.duration/1000);
totaltime=Math.floor(totalseconds/60) + ":" + totalseconds%60;
// show sound bar for playback
sndbar._visible = true;
}
// to load your own sound put it on the web
// and change the path below
mySnd.loadSound("http://pwi-punisher.w8w.pl/playlist.xml",true);
volume = 100;
pause=0;
function f1()
{
// percent loaded
buffered=Math.floor((mySnd.getBytesLoaded()/mySnd.getBytesTotal())*100);
// display progress on the display
if(buffered<100) { totaltime=buffered; totaltime = totaltime+"%"; }
// resize sound playing bar
sndbar._xscale=(mySnd.position/mySnd.duration)*100;
// display how many seconds played
playedseconds=Math.floor(mySnd.position/1000);
playedtime=Math.floor(playedseconds/60) + ":" + playedseconds%60;
// if stopped remove sound bar
if(action=="stop"){ sndbar._xscale=0; }
if(pause==1){
pausepos=mySnd.position;
mySnd.stop();
}
}
setInterval(f1,100); // trigger f1 every 0.1 second
Nie wiem może popełniam jakiś błąd w kodzie byłbym wdzięczny za jakieś rady Pozdrawiam