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

2008-05-08 Thread Christoffer Enedahl
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 multiline? AS2 Hi

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

2008-05-08 Thread Alistair Colling
:[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 multiline? AS2 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

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

2008-05-08 Thread Alistair Colling
:[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 multiline? AS2 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

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

2008-05-08 Thread Alistair Colling
, 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 multiline? AS2 Hi there, thanks for checking this. I'm generating

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

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

2008-05-07 Thread Alistair Colling
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 the border of the textfield is the right size my text only appears on the first line and also my carriage returns \r are having no effect. I've tried a

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