Hello all,
I’m having problems loading a new XML file.
I have a single XML loading into an MC initially.
Then when I try to load in a new file with a button - the previously loaded XML file doesn’t want to leave. Maybe it’s just too happy where it is?
var imagelibrary = new XML();
imagelibrary.ignoreWhite = true;
imagelibrary.onLoad = function(success) {
if (success) {
gallery_mc.loadPic(0);
} else {
error_txt.text = "Error retrieving file.";
}
};
imagelibrary.load("imagelibrary.xml");
Here’s me trying to load a new file.
button1.onRelease = function() {
imagelibrary.load("newXMLfile.xml");
}
I’ve tried removing the movie clip as well as deleting the xml… no luck.
When i remove the movie clip and try to load up a new file - the same file comes back!
Any ideas? Thanks a bunch!