Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-08 Thread Christoffer Enedahl
Try \n or \r\n HTH/Christoffer Alistair Colling skrev: Thanks guys :) works perfectly. Now it seems my line returns (\r) aren't being recognised (they show up in the textfield). Anyone got any ideas whats going on? Cheers On 7 May 2008, at 18:19, Robert Leisle wrote: Hi Alistair, Try

Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-08 Thread Alistair Colling
Thanks for your reply Chistoffer, I'm afraid it's still not working, the characters appear in my text field. Here's the code I am using to create the text format and textfield, maybe something here is screwing it up: var myM:TextFormat = new TextFormat();

Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-08 Thread Alistair Colling
Thanks for your reply Chistoffer, I'm afraid it's still not working, the characters appear in my text field. Here's the code I am using to create the text format and textfield, maybe something here is screwing it up: var myM:TextFormat = new TextFormat();

Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-08 Thread Alistair Colling
Thanks guys :) works perfectly. Now it seems my line returns (\r) aren't being recognised (they show up in the textfield). Anyone got any ideas whats going on? Cheers On 7 May 2008, at 18:19, Robert Leisle wrote: Hi Alistair, Try adding this to your code: tmpField.wordWrap = true;

Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-08 Thread Rich Shupe
I think the problem is that you're pulling your string from another text field. In that case, the characters are just characters, rather than control codes. This subset of your code works fine: var tmpField:TextField = this.createTextField(my_txt, 1, 0,0,100,100); tmpField.selectable = false;

Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-08 Thread Alistair Colling
hmm, the string that is being targeted is held in a variable that is set from an xml file so should just be a regular string, i'll look into this tho. Thanks Rich On 8 May 2008, at 13:38, Rich Shupe wrote: I think the problem is that you're pulling your string from another text field. In

Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-08 Thread Rich Shupe
In that case, use HTML and br and/or try wrapping the content in a CDATA tag. On 5/8/08 8:52 AM, Alistair Colling wrote: hmm, the string that is being targeted is held in a variable that is set from an xml file so should just be a regular string, i'll look into this tho. Rich

Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-07 Thread Bob Wohl
If i remember correctly it should be: tmpField.wordWrap = true; hth, B. On Wed, May 7, 2008 at 10:03 AM, Alistair Colling [EMAIL PROTECTED] wrote: Hi there, thanks for checking this. I'm generating a textfield from within a custom class but I can't seem to make it multiline, I can see

RE: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-07 Thread Robert Leisle
Hi Alistair, Try adding this to your code: tmpField.wordWrap = true; Hth, Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alistair Colling Sent: Wednesday, May 07, 2008 10:03 AM To: Flash Coders List Subject: [Flashcoders] Why isn't my TextField