Using: Adobe Director 11
I created a chat application, but when I write a message it puts the message at the end of the field. But when the scrollbar appeares you have to scroll yourself to see the new message. I want this to be automated. (For example: WLM/MSN)
Now, I found this article wich was very nice, but it did not work...
Why did it not work? Because I'am using a flash-component Text Area. I have my reasons to work with a flash-component.
Can anyone help me out please? I just want it to scroll down when a new message is added.
Code to add new text to the chat:
sprite(9).text = sprite(9).text & "<i>" & chatname & " says:</i>"
sprite(9).text = sprite(9).text & "- " & message
Sprite 9 = chatwindow
It's just like:
- Message 1
Can anyone also help with the script to notify the user of a new message (like msn):
Does not work...
What is the name of the window when I just open a projector? The projector itself is not opening other windows...
There are two Flash text area component properties that you can use: vPosition and maxVPosition. To get the text area to scroll down after you load in the new content, set the sprite's vPosition to the maxVPosition. This will move the text to show the bottom.