Link to home
Start Free TrialLog in
Avatar of Angha110
Angha110

asked on

Fit text in input textfield

I am creating an input textfield. I want to let the user type as much as they want (reasonable) and all fits in the textfield box. So I think changing the font size as the user types in is the solution (please let me know if you have a better solution).

How to do it?
Avatar of quizengine
quizengine
Flag of United Kingdom of Great Britain and Northern Ireland image

The attached fla isn't a fully formed solution, but I thought it might give you some ideas to work on. Select the movieclip on the stage and look at the Actions panel to see the code.
scale-input-text.fla
Avatar of Angha110
Angha110

ASKER

Thank you for the post,
How do I do it in AS3?
ASKER CERTIFIED SOLUTION
Avatar of quizengine
quizengine
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
And again, it's not a perfect solution, but just something to get you thinking. I've found that programmers get their best insights / do their best learning when they crunch the details for themselves after getting pointers (rather than complete solutions) from someone else.

Certainly that's how I've gotten to where I am. Good luck :-)
Thank you.