Kod: Zaznacz cały
for (var k = -2; k <= m; k++) {
insname = "_mc" + k;
dep = k + n + 2;
ksum = k + 3;
srurl = "images/image-" + ksum + ".jpg";
newMc = newContMc1.createEmptyMovieClip(insname, dep);
newMc._x = -k * (x_ + y_);
newMca = newMc.createEmptyMovieClip(insname, this.getNextHighestDepth());
newMca.loadMovie(k + ".jpg");
newMc.onRelease = function () {
getURL("javascript:LightboxDelegate('" + srurl + "','Green Wallpaper')");
};
}images/image-1.jpg
images/image-2.jpg
images/image-3.jpg
Natomiast:
Kod: Zaznacz cały
getURL("javascript:LightboxDelegate('" + srurl + "','Green Wallpaper')");
Dlaczego tak się dzieje? Co zrobić, żeby działało normalnie i ładowało, to co jest w "srurl"??
