|
-
 Originally Posted by fruitbeard
Hi,
Here you go, you will notice a few changes to the code, its CS5, that is the lowest I can save it to.
fruitbeard you still there man? i still need some help, im confuse!!!! i have several tracks and i would like to add a button to strem all through a .xml playlist but i cannot combine your code with this one that was given to me earlier here in FlashKit by poltuda...here it is the code already altered by me....
Code:
on (release) {
i = 0;
listaMP3 = new XML();
listaMP3.ignoreWhite = true;
listaMP3.load("House.xml");
listaMP3.onLoad = function() {
_global.songfile = [];
_global.songfile[i] = listaMP3.firstChild.childNodes[i].attributes.url;
trilha = new Sound();
list = listaMP3.firstChild.childNodes;
som = list[i].attributes.url;
trilha.loadSound(som,true);
SongText.text = "House Tracks";
trilha.onSoundComplete = playLoop;
};
function playLoop() {
_root.AreaS.scroller._x = 0;
_root.AreaS.playbar._width = 0;
_root.AreaS.loadbar._width = 0;
if (i<list.length-1) {
i++;
_global.songfile[i] = listaMP3.firstChild.childNodes[i].attributes.url;
som = list[i].attributes.url;
trilha.loadSound(som,true);
SongText.text = "House Tracks";
} else {
_root.AreaS.scroller._x = 0;
_root.AreaS.playbar._width = 0;
_root.AreaS.loadbar._width = 0;
i = 0;
_global.songfile[i] = listaMP3.firstChild.childNodes[i].attributes.url;
som = list[i].attributes.url;
trilha.loadSound(som,true);
SongText.text = "House Tracks";
}
}
}
well... i can do the loop thing but i cannot set the controls to get back into 0...it just plays the first track and then all bars and scroll stay in the end when the track changes..I hope you help me... i just do not understand well even if i put the Played = true given by you in this code....
Thanks:
Duarte V.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|