hello folks!
got one big problem with this thumbnail gallery… i tested it localy with apache and php and it worked nice! i uploaded it to the web provider and the script freaks out… like it won’t read the stop(); on second frame… maybe someone can help me out!?
klick on a folder to see what i mean with freakin out!
http://www.petznick.at/ludschi/index.php
frame one:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.attributes.href;
description* = xmlNode.childNodes*.attributes.name;
}
gotoAndPlay(2);
} else {
trace("xmlfile not loaded");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("lib.php?function=getThumbfiles&dir=Wallpapers");
frame two:
var x = 15;
var y = 15;
for (u=0; u<total; u++) {
var turl = "pic_srv.php?img=Wallpapers/" + image[u] + "&x=100&y=100";
var t = this.createEmptyMovieClip ("thumbnail" + u, u);
var c = t.createEmptyMovieClip ("picHolder", 0);
c.loadMovie (turl);
c._x = x + u * (100 + x);
c._y = y;
t.url = "Wallpapers/" + image[u];
t.onRelease = function() {
_root.mc_wallpaperopener.loadMovie(this.url);
}
}
stop();
thanks in advance!!!
oliver