Solved

Fit text in input textfield

Posted on 2013-06-25
5
251 Views
Last Modified: 2013-07-03
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?
0
Comment
Question by:Angha110
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:quizengine
ID: 39277573
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
0
 

Author Comment

by:Angha110
ID: 39283138
Thank you for the post,
How do I do it in AS3?
0
 
LVL 19

Accepted Solution

by:
quizengine earned 500 total points
ID: 39283154
AS3 version attached.
scale-input-text-AS3.fla
0
 
LVL 19

Expert Comment

by:quizengine
ID: 39283155
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 :-)
0
 

Author Closing Comment

by:Angha110
ID: 39297903
Thank you.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now