Re: [Flashcoders] Q:input textfield woes setting maximum lines

2007-03-12 Thread Sam Thorne
That's generally how I deal with text fields that have to be centered with
localisable text.

Attach a dummy textfield, enter the text, see how big it is then apply the
positioning information to the real field and remove the dummy one.

Adding/removing a field and getting the values out within 3 lines is quick
enough that you don't see it drawing.

It's a bit awkward, but it works!

On 11/3/07 14:56, Latcho [EMAIL PROTECTED] wrote:

 anoyher fix might be overlaying the displaying field, you don't want to
 have overflowed your max lines with
 an input field that has _alpha 100, and has an embed font. Use the later
 as input, ans if maxscroll  2 after onKeyup,
 feed it to the underlaying visible textfield. Otherwise ,restore its
 content with the previous buffered text and don't feed it to the visible
 field.
 Dirty but worling I guess.
 
 Latcho.

___
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


Re: [Flashcoders] Q:input textfield woes setting maximum lines

2007-03-11 Thread Latcho
anoyher fix might be overlaying the displaying field, you don't want to  
have overflowed your max lines with
an input field that has _alpha 100, and has an embed font. Use the later 
as input, ans if maxscroll  2 after onKeyup,
feed it to the underlaying visible textfield. Otherwise ,restore its 
content with the previous buffered text and don't feed it to the visible 
field.

Dirty but worling I guess.

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


Re: [Flashcoders] Q:input textfield woes setting maximum lines

2007-03-10 Thread Latcho
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.maxscroll2) {
   bufferText = txtfield_mc.text;
   } else {
   txtfield_mc.text = bufferText;
   }
};
KP.onKeyUp = function() {
   if (txtfield_mc.maxscroll2) {
   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


[Flashcoders] Q:input textfield woes setting maximum lines

2007-03-09 Thread moveup
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