View Full Version : dynamic text boxes
abro
April 20th, 2006, 07:39 AM
Hi
I need to place a few dynamic text boxes one under other. The problem I have is that the number of lines in the top text box will vary and I want the text boxes underneath to be aligned relative to that text box. Does anyone out there know the best way to do this.
Cheers
chevron8653
April 20th, 2006, 11:24 AM
perhaps putting each one in a different layer of its own may help.
abro
April 20th, 2006, 11:55 AM
perhaps putting each one in a different layer of its own may help.
I can't see how that will help. Let me explain a bit further; the top dynamic text box is expands downwards (depending on the amount of text in a box) The next text box needs to sit below this, but its vertical position depends on how far the down the top text box has expanded IYSWIM.
I would imagine that the secondtext box can only be set up in action script with its vertical position a variable dependent on the height of the top text box. Any ideas how to progress from here?
JoshuaJonah
April 20th, 2006, 12:05 PM
well, i would post some code so that it can be modified, you can place the text box with action script like this:
lowertextbox._x = number(uppertextbox._x)+number(uppertextbox._heigh t)
pretty basic
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.