Solved

Limit number of rows in a Flash Multiline Text Input

Posted on 2008-10-06
2
442 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.

763 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

14 Experts available now in Live!

Get 1:1 Help Now