Not the nicest way, and not working with pasted text, a line WILL disappear, but restured onkeyup...
never say NEVER ;)

var txtfield_mc = myTxtField_mc;
var bufferText:String;
var KP = {};
bufferText = txtfield_mc.text;
Key.addListener(KP);
KP.onKeyDown = function() {
   txtfield_mc.scroll = 0;
   if (txtfield_mc.maxscroll<2) {
       bufferText = txtfield_mc.text;
   } else {
       txtfield_mc.text = bufferText;
   }
};
KP.onKeyUp = function() {
   if (txtfield_mc.maxscroll<2) {
       bufferText = txtfield_mc.text;
   } else {
       txtfield_mc.scroll = 0;
       txtfield_mc.text = bufferText;
   }
   trace(txtfield_mc.maxscroll);

regards,
latcho

[EMAIL PROTECTED] wrote:
Hi
I have input text fields in some 'speech bubbles' for an application I am 
building

I can set the maximum number of characters, but what I really need is to be 
able to set the maximum number of lines so that hitting return NEVER causes 
text to disappear.

So far , not the best solution has been found.

Can anyone help?



[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
             - Bruce Mau,'LifeStyle'
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to