using: mx2004 but would like to publish as flash 6.
I have 3 text boxes populated with different content from a php script. as the content of the text boxes is likely to change and be of different length, i would like to position them tightly underneath each other, e.g box 1 maybe one or two lines of text, and id like box two to position itself accordingly so as not to leave a big gap.
the instance names are : NAME, STUDIED and TEXT, and im using this script:
NAME.autoSize = true;
STUDIED.autoSize = true;
TEXT.autoSize = true;
//get the height of the the name box
var nameheight = getProperty (_root.targetmc.NAME, _height);
// and position studied box accordingly
setProperty (_root.targetmc.STUDIED, _y, nameheight);
//get hieght of studied box
var studiedheight = getProperty (_root.targetmc.STUDIED, _height);
// add name and studied heights together to get position for text:
var textpos = (studiedheight + nameheight);
setProperty (_root.targetmc.TEXT, _y, textpos);
it doesnt make any difference to the values of the positioning variables etc whther there is 1 or 2 lines of text filling the boxes<