Solved

Fit text in input textfield

Posted on 2013-06-25
5
261 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

617 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