I’ve tried breaking the for loop into three to place 3 thumbnails (out of the 9 I wanna use) onto three lines - but the thumbnaisl end up staggered on each line - any ideas how to get them to display as a perfect 3x3 grid???
here’s the for loops I redid:
lineOne = 3;
for (child = 0; child < lineOne; child++){
currentPicture = portfolioTag.childNodes[child];
currentThumb = menu_mc1.createEmptyMovieClip(“thumbnail”+child,child);
currentThumb._x = child * 38;
// create image clip in currentThumb:
image = currentThumb.createEmptyMovieClip(“thumbnail_image”,0);
image.loadMovie(currentPicture.attributes.THUMB);
currentThumb.NAME = currentPicture.attributes.NAME;
currentThumb.IMAGE = currentPicture.attributes.IMAGE;
currentThumb.TEXT = currentPicture.attributes.TEXT;
currentThumb.onRollOver = currentThumb.onDragOver = function(){
showName_txt.text = this.NAME;
}
currentThumb.onRollOut = currentThumb.onDragOut = function(){
// set the text to an empty string (clearing it)
showName_txt.text = “”;
}
currentThumb.onPress = currentThumb.onDragOver = function(){
image_mc.loadMovie(this.IMAGE);
info_txt.text = “Loading…”;
timeline.loadVariables(this.TEXT);
}
}
lineTwo = 6;
for (child = 3; child < lineTwo; child++){
currentPicture = portfolioTag.childNodes[child];
currentThumb = menu_mc2.createEmptyMovieClip(“thumbnail”+child,child);
currentThumb._x = child * 38;
// create image clip in currentThumb:
image = currentThumb.createEmptyMovieClip(“thumbnail_image”,0);
image.loadMovie(currentPicture.attributes.THUMB);
currentThumb.NAME = currentPicture.attributes.NAME;
currentThumb.IMAGE = currentPicture.attributes.IMAGE;
currentThumb.TEXT = currentPicture.attributes.TEXT;
currentThumb.onRollOver = currentThumb.onDragOver = function(){
showName_txt.text = this.NAME;
}
currentThumb.onRollOut = currentThumb.onDragOut = function(){
// set the text to an empty string (clearing it)
showName_txt.text = “”;
}
currentThumb.onPress = currentThumb.onDragOver = function(){
image_mc.loadMovie(this.IMAGE);
info_txt.text = “Loading…”;
timeline.loadVariables(this.TEXT);
}
}
lineThree = 9;
for (child = 6; child < lineThree; child++){
currentPicture = portfolioTag.childNodes[child];
currentThumb = menu_mc3.createEmptyMovieClip(“thumbnail”+child,child);
currentThumb._x = child * 38;
// create image clip in currentThumb:
image = currentThumb.createEmptyMovieClip(“thumbnail_image”,0);
image.loadMovie(currentPicture.attributes.THUMB);
currentThumb.NAME = currentPicture.attributes.NAME;
currentThumb.IMAGE = currentPicture.attributes.IMAGE;
currentThumb.TEXT = currentPicture.attributes.TEXT;
currentThumb.onRollOver = currentThumb.onDragOver = function(){
showName_txt.text = this.NAME;
}
currentThumb.onRollOut = currentThumb.onDragOut = function(){
// set the text to an empty string (clearing it)
showName_txt.text = “”;
}
currentThumb.onPress = currentThumb.onDragOver = function(){
image_mc.loadMovie(this.IMAGE);
info_txt.text = “Loading…”;
timeline.loadVariables(this.TEXT);
}
}
ANYONE have ANY ideas???
also - if ANYONE has ANY ideas about how to take the displayText variable OUT of the txt files & instead use it within the XML sheet instead I’d be REALLY REALLY greatful!!!
Thanks
– StreetRacerX –