PDA

View Full Version : Extremely simple TextArea problem


tonka1o
07-12-2005, 03:38 PM
I have:

- a TextArea:chat_txt
- a Text Input:send_txt
- a Button: send_btn

...with the following code:

send_btn.onRelease = function(){
chat_txt.text += send_txt.text + "\n";
}

All I want is the TextArea to scroll to the bottom each time a new line is entered. However, it always stays at the top.

I've tried "chat_txt.scroll = chat_txt.maxscroll" and it did made no difference.

'Preciate any help. Thanks.

tonka1o
07-12-2005, 04:37 PM
I have:

- a TextArea:chat_txt
- a Text Input:send_txt
- a Button: send_btn

...with the following code:

send_btn.onRelease = function(){
chat_txt.text += send_txt.text + "\n";
}

All I want is the TextArea to scroll to the bottom each time a new line is entered. However, it always stays at the top.

I've tried "chat_txt.scroll = chat_txt.maxscroll" and it did made no difference.

'Preciate any help. Thanks.

finchou
07-12-2005, 05:30 PM
send_btn.onRelease = function(){
chat_txt.text += send_txt.text + "\n";
chat_txt.scroll=chat_txt.maxscroll;
}


works fine...

tonka1o
07-12-2005, 05:58 PM
send_btn.onRelease = function(){
chat_txt.text += send_txt.text + "\n";
chat_txt.scroll=chat_txt.maxscroll;
}


works fine...

Man, that's the first thing I tried and it still does not scroll to the bottom.

Is there some sort of property that I need to set beforehand?

finchou
07-12-2005, 06:09 PM
No I don't think so... I have MX 2004 pro, maybe that's the problem...
here's my fla, hope yours doesn't look like that :D

oldnewbie
07-13-2005, 04:51 AM
The TextArea component is only available in MX2004, and this is a MX and LOWER only forum! ;)