Solved

Limit number of rows in a Flash Multiline Text Input

Posted on 2008-10-06
2
450 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

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…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

803 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