Solved

Fit text in input textfield

Posted on 2013-06-25
5
253 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
blocked plugin flash 5 111
Adobe Flash Player ActionScript error 6 60
I'm running a risk by using Adobe Flash in my site ? 9 117
Flash Converter 8 113
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 select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
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.

896 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