Get height of a dynamic text field: even possible?


is there way can read height dynamically generated text box parent movieclip positioning purposes?

i have single line text box set autowrap , autosize.
my attachmovie function see's single line object if have 3 lines. text display fine, when stacks next movie clip, stacks on top of previous one. stacks under height of single line text box created.

i can of course increase height of text box, defeats purpose of auto settings. plus, nodes have 1 line, have 6 need them adjust accordingly.

ideally:
box 1 height = 45 y position starts @ 0,0
box 2 height = 108 y position starts @ 0,55 (10 pixels below first box)
box 3 height = 36 y position starts @ 173 (the first box, plus second box, plus 10 pixels in between both)

i can't seem work way i'd to. appreciate insight. i've been on google , haven't been able find of reference.

this code have:


thank you!!

i'll mess exact terminology, methods , properties of children of attached movie not available until 1 frame after attaching happens. or that.

so wait 1 frame , reposition everything, or ....

i recommend not using attachmovie , instead create textfields dynamically. can place them want them. if have reason textfields each need wrapped in movieclip can still combination of movieclip.createemptymovieclip() , movieclip.createtextfield().

post if need implementing that.


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support