var col = 10;
var row = 8;
//wi is the thumbnail width + the space you want
var wi = 75;
//hi is the thumbnail height + the space you want
var hi = 75;
for (k=0; k<col; k++) {
for (j=0; j<row; j++) {
holder._x = wi*j;
holder._y = hi*k;
}
}
Using the code I posted the images do appear, in cascade, but they appear.
I don’t know which is the problem, if I change the code. The images just don’t appear.
I think somehow I have to include my var i.
Let me know if I did something wrong. please.
Thank you, for taking the time!:sure:
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(ok) {
if (ok) {
loop(my_xml);
} else {
trace(“error loading xml file”);
}
};
my_xml.load(“images.xml”);
function loop(my_xml) {
var portfolioPictures = my_xml.firstChild.childNodes;
nuclips = portfolioPictures.length;
for (var i = 0; i<nuclips; i++) {
var currentPicture = portfolioPictures*;
var holder = _root.createEmptyMovieClip(“holding”+i, i);
var col = 10;
var row = 8;
//wi is the thumbnail width + the space you want
var wi = 75;
//hi is the thumbnail height + the space you want
var hi = 75;
for (k=0; k<col; k++) {
for (j=0; j<row; j++) {
holder._x = wij;
holder._y = hik;
}
}
inner = holder.createEmptyMovieClip(“thumbnail_image”, 0);
inner.loadMovie(currentPicture.attributes.thumb);
holder.title = currentPicture.attributes.title;
holder.image = currentPicture.attributes.image;
holder.onRollOver = function() {
_root.texto.text = this.title;
};
holder.onRelease = function() {
_root.disappear(_root.images, 0);
pictureit.loadMovie(this.image);
};
}
}
col = 10;
row = 8;
wi = 30;
hi = 23;
cuenta = 0;
for (k=0; k<col; k++) {
for (j=0; j<row; j++) {
holder._x = wii;
holder._y = hik;
cuenta++;
}
}
This way it appears horizontally, what am I doing wrong?