tgelston
May 3rd, 2003, 10:36 AM
Hi all!
I have a dynamic text box of fixed with - lets say 200px wide.
This box will display a user input line - I want the font in the box to dynamically resize so it will fit nicely- if the user types "Cat" the text will be very large (it doesnt have to fit perfect) and if they type "The cat in the hat was a very fine book" the font size would decrease so it will still fit in that 200 px width.
I have found this "TextField.setTextFormat" in the AS dict. but don't really understand how to pass anything along.
If this is to difficult I will accept making the text multiline - something I also can't seem to figure out.
Thanks,
Tobias
I have a dynamic text box of fixed with - lets say 200px wide.
This box will display a user input line - I want the font in the box to dynamically resize so it will fit nicely- if the user types "Cat" the text will be very large (it doesnt have to fit perfect) and if they type "The cat in the hat was a very fine book" the font size would decrease so it will still fit in that 200 px width.
I have found this "TextField.setTextFormat" in the AS dict. but don't really understand how to pass anything along.
If this is to difficult I will accept making the text multiline - something I also can't seem to figure out.
Thanks,
Tobias