homepage Welcome to WebmasterWorld Guest from Subscribe to
WebmasterWorld  Forum Library, Charter, Moderator: open  Flash
and Shockwave Forum  dynamic text boxes in flash mx2004 setting
position relevent to content   2:32 pm on Nov 3, 2003 (gmt 0)
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 studiedheigh