currentRecord = 0; //Variable used to keep track of the current image
// function for onLoad method of xmlObject
function dataLoaded(complete) {
if (complete) {
nodeCount = this.firstChild.childNodes.length; //Check the image count from the xml file
showRecord(1);
_root.man_mc.dynGo.rowCount = nodeCount;//set the rowcount of jump menu
for (i=1; i<=nodeCount; i++) { // Add numbers to jump menu
_root.man_mc.dynGo.addItem(i);
}
}
}
// XML declaration and loading
xmlObject = new XML();
xmlObject.ignoreWhite = true;
xmlObject.onLoad = dataLoaded;
xmlObject.load("images.xml");
// function to be run by "next" button
function showNext() {
if (currentRecord == nodeCount) {
loadNumber = 1;
} else {
loadNumber = currentRecord+1;
}
imgSlide();
}
// function to be run by "previous" button
function showPrevious() {
if (currentRecord == 1) {
loadNumber = nodeCount;
} else {
loadNumber = currentRecord-1;
}
imgSlide();
}
// function to set variable names/display fields
function showRecord(recordNumber) {
var nodeObject = xmlObject.firstChild.childNodes[recordNumber-1];
titled = nodeObject.attributes.titled;
description = nodeObject.attributes.description;
media = nodeObject.attributes.media;
slideFilename = "img/"+media+"";
image_mc.loadMovie(slideFilename);
onEnterFrame = function () {
bytesLoaded = _root.image_mc.getBytesLoaded();
if (bytesLoaded == _root.image_mc.getBytesTotal()) {
// check if the image is loaded
delete onEnterFrame;
show();
}
};
currentRecord = recordNumber;
_root.man_mc.dynGo.setSelectedIndex(currentRecord-1);
}
Ciao questo č il sorgente dove va acreare le immagini, secondo te dove posso impostare setinterval ?