The last two days have been very busy and I haven't been able to get on.
Thanks for your help!
After trying to test the movie, I get the following error:
Code:
Left side of assignment operator must be variable or property.
with this listed as the source:
Code:
next.setInterval(current, 5000) = goForward; //after 5 seconds go to next image
Did I phrase the setInterval code wrong?
Here is my complete current actionscript(2):
Code:
// Initiate XML
var xml:XML = new XML();
xml.ignoreWhite = true;
// Variables
var total:Number = new Number();
var path:String = new String();
var current:Number = 0;
// Load XML
xml.onLoad = function(success) {
if(success) {
total = xml.firstChild.childNodes.length // Set total number of pages
path = xml.firstChild.attributes.path;
loadImages(current);
}
else {
trace("Error: XML Didn't Load");
}
}
// Load Images
function loadImages(page) {
pageNo.text = "PAGE " + (page+1) + " OF " + total;
var imagePath:String = xml.firstChild.childNodes[page].childNodes[i].childNodes
positions[i].loadMovie(imagePath);
createNavigation();
}
// Next Function
next.setInterval(current, 5000) = goForward; //after 5 seconds go to next image
function goForward() {
current++;
loadImages(current);
}
xml.load("gallary.xml");
Bookmarks