hi,
habe hier dieses kleine script leider funktioniert mein onRelase nicht an was kann das liegen ??
ActionScript:
for (i=0; i<fotoArray.length; i++) {
if (x>360) {
// 373 ist die breite des hintergrundbereiches...
y += 52;
x = 0;
}
_root.contents.pics.picsThumbs.createEmptyMovieClip(fotoArray[i], i);
_root.contents.pics.picsThumbs[fotoArray[i]].loadMovie("pics/thumbs/thumb_"+fotoArray[i]+".jpg");
trace(_root.contents.pics.picsThumbs[fotoArray[i]]);
// _root.test.text = i;
_root.contents.pics.picsThumbs[fotoArray[i]]._x = x;
_root.contents.pics.picsThumbs[fotoArray[i]]._y = y;
x += 52;
_root.contents.pics.picsThumbs[fotoArray[i]].i =i+1;
_root.contents.pics.picsThumbs[fotoArray[i]].onRelease = function() {
trace(this.i);
};
}
könnte das was damit zu tun haben weil die bilder vielleicht noch nicht fertig geladen sind und so der onRelease vielleicht einen leeren mc beim start hat oder hat das ne andere ursache ??