Does anyone know how to control the length of a line with
dynamic text input?
I have two buttons, one that increases the value of a dynamic
text input by 1 each time it is pressed, and another that decreases
it. The screen displays the resulting number. I want to draw a line
that increases or decreases in length with this number.
Well, you could take the value of the text field and multiply
that by some constant to get your line length. Once you have that
number, you can either draw the line dynamically using the Drawing
API or change the width of a movieclip with a line in it...
Say you have a movieclip with an instance name of line_mc,
and your dynamic text field has an instance name of myTextField,
you can change the width of the line_mc like this: