Hello all,
I have a quick question. I am a block of text and an image using XML. I am then placing it in a scroller. Right now the spacing is equidistant between all of the mc’s. Is there any way to set it up so that the distance is determined off the height of the text and not the holder mc I have. Here’s the code:
function createCopy() {
this.createEmptyMovieClip("holder_mc", this.getNextHighestDepth());
holder_mc._x = 10;
holder_mc._y = 10;
for (n=0; n<text_obj.numNodes; n++) {
holder_mc.attachMovie("textholder", "text_"+n, n, {_x:0, _y:n*100});
holder_mc["text_"+n].Photo_mc.loadMovie(_global.ImagePath+text_obj.photo[n]);
holder_mc["text_"+n].line1_txt.text = text_obj.line1[n];
}
}
As you can see, holder_mc contains an empty mc that gets a photo and a dynamic text box called line_1_txt. Some of the text being brought in is three lines, some is up to five.
Right now, the height is determined with the _y:n*100}. Would an autoSize thing work? Thanks in advance!