Since I’m an advanced as newbie and am puzzled why the kirupa’s slideshow would load image/swf in some browsers while won’t load in other browers such as AOL and two or three PC browsers. I checked the browsers plug-in to be sure it has Flash 7 or 8 version and they does have it. So anybody care to enlighten me why it won’t work and is there anyway to make it work in all browsers?
delay = 10000;
//-----------------------
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild.childNodes;
imageURL = [];
linkURL = [];
total = xmlNode.length;
for (i=0; i<total; i++) {
imageURL* = xmlNode*.attributes.imageURL;
linkURL* = xmlNode*.attributes.linkURL;
}
firstimage();
} else {
trace('problem');
}
}
imageData = new XML();
imageData.ignoreWhite = true;
imageData.onLoad = loadXML;
imageData.load("images.xml");
p = 0;
this.onEnterFrame = function() {
filesize = holder.getBytesTotal();
loaded = holder.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (holder._alpha<100) {
holder._alpha += 5;
this.holder.onRelease = function () {
getURL(linkURL[p]);};
}
}
};
function nextimage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
holder._alpha = 0;
holder.loadMovie(imageURL[p], 1);
slideshow();
}
}
}
function prevImage() {
if (p>0) {
p--;
holder._alpha = 0;
holder.loadMovie(imageURL[p], 1);
}
}
function firstimage() {
if (loaded == filesize) {
holder._alpha = 0;
holder.loadMovie(imageURL[0], 1);
slideshow();
}
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstimage();
} else {
nextimage();
}
}
}
Happy New Year!
Jace