hi,
I have an mp3 player in a MC on the main timeline… but the Dynamic text wont display the track. before when the player wasn’t nested anywhere it worked fine… please help. :jag: if possible how could you tell the player to play the songs in a certain order not randomly… yours sincerley
Mat
clearInterval(slideInterval);
loadbar._visible = false;
delayx = 2000;
//-----------------------
function loadXML(loaded) {
if (loaded) {
clearInterval(slideInterval);
xmlNode = this.firstChild;
image = [];
description = [];
head = [];
blabla = [];
total = xmlNode.childNodes.length;
for (s=0; s<total; s++) {
image[s] = xmlNode.childNodes[s].childNodes[0].firstChild.nodeValue;
description[s] = xmlNode.childNodes[s].childNodes[1].firstChild.nodeValue;
head[s] = xmlNode.childNodes[s].childNodes[2].firstChild.nodeValue;
blabla[0] = xmlNode.childNodes[0].childNodes[3].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
clearInterval(slideInterval);
xmlData.load("images.xml");
/////////////////////////////////////
w = 0;
function loadPics(w) {
picture._alpha=0;
picture.loadMovie(image[w]);
var tempx = this.createEmptyMovieClip("tmpx", 1999);
tempx.onEnterFrame = function() {
loadbar._visible = false;
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
loadbar._xscale = 100*loaded/filesize;
if (loaded > 2) {
loadbar._visible = true;
desc_txt.text = description[w];
head_txt.text = head[0];
picture_num();
}
if (loaded == filesize && filesize>4) {
loadbar._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
if (picture._alpha>98) {
picture._alpha = 100;
slideshow();
delete this.onEnterFrame;
}
}
}
};
}
function nextImage() {
clearInterval(slideInterval);
if (w<(total-1)) {
w++;
loadPics(w);
}
}
function firstImage() {
clearInterval(slideInterval);
loadPics(0);
}
function slideshow() {
clearInterval(slideInterval);
slideInterval = setInterval(pause_slideshow, delayx);
function pause_slideshow() {
clearInterval(slideInterval);
if (w == (total-1)) {
w = 0;
firstImage();
} else {
nextImage();
}
}
}