Solved

Limit number of rows in a Flash Multiline Text Input

Posted on 2008-10-06
2
454 Views
Last Modified: 2013-11-11
I have a textbox that I need to limit number of rows on.

PS. The user can change the font family and size in the box on the fly.
0
Comment
Question by:entronet
2 Comments
 
LVL 7

Accepted Solution

by:
kishoregp earned 500 total points
ID: 22656430
you can use the rowHeight and check
i don't have flash right now, if u want i can chk the code and send
do like this..
on keypress,
if rowheight < asneeded then
x = txtfield.text
else
txtfield.text = x
end if

this works for sure, i have used in my projects
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Flash doesn't load in Iphone and Ipad 22 497
Flash Player Action Script Error 1090 5 224
Download Adobe Flash Player 6 67
Adobe Indesign CS6 4 145
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

749 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