Hello! Im trying to do a portfolio gallery with a grid and small
thumbnails with xml.
I ve been doing some tutorials to help me..but this thing doesnt work.
i wanted this:
1 2 3
4 5 6
7 8 9
The xml file is made correctly and the path for the images is
link="imagens/somepic.jpg"
And here is the AS..
///XML
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
gridx=55;
gridy=55;
num=0;
for (i=0; i<3; i++)
for (j=0; j<3; j++) {
picHolder = this.firstChild.childNodes[i+(j*3)];
thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+num, num);
thumbHolder._x=gridx*i;
thumbHolder._y=gridy*j;
num++;
thumbLoader = thumbholder.createEmptyMovieClip("thumbnail_image", 0);
thumbLoader.loadMovie(picHolder.attributes.link);
thumbHolder.main = picHolder.attributes.swf;
thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
};
//}
};
myPhoto.load("design.xml");
Thanks is advance...
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders