Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Fit text in input textfield

Posted on 2013-06-25
5
Medium Priority
?
265 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

916 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