David Heath
11-24-2005, 10:17 AM
Hello there,
At the moment I have a single text box ('Section1Text_txt') which has a scrollbar component linked to it ('cmpScrollBar'). The text box is linked to an XML file which feeds paragraphs into the box sequentially as the user moves forward in the movie. As you can image, the text box fills up pretty quickly, and it isn't long before the user needs to scroll down to see the newly added text.
At the moment I have the following line of code to automatically scroll the text box to the bottom, so that the user can easily read the newest text added:
section1Text_txt.scroll +=25;
This seems to work fine, except for when the text almost causes the scrollbar to appear (it is invisible unless needed), in which case the scrollbar becomes invisible for a half second or so before disappearing again. This is not ideal at all, so I am asking if there is a way around this, or if there is an alternative way of approaching this problem.
I tried adding a white graphic symbol over the top of the scrollbar (covering it up)), and causing it to only become invisible (thus revealing the scrollbar) if the scrollbar itself is needed, but the scrollbar component doesn't seem to recognise the '.visible' caommand and so this didn't work at all.
Any ideas?
At the moment I have a single text box ('Section1Text_txt') which has a scrollbar component linked to it ('cmpScrollBar'). The text box is linked to an XML file which feeds paragraphs into the box sequentially as the user moves forward in the movie. As you can image, the text box fills up pretty quickly, and it isn't long before the user needs to scroll down to see the newly added text.
At the moment I have the following line of code to automatically scroll the text box to the bottom, so that the user can easily read the newest text added:
section1Text_txt.scroll +=25;
This seems to work fine, except for when the text almost causes the scrollbar to appear (it is invisible unless needed), in which case the scrollbar becomes invisible for a half second or so before disappearing again. This is not ideal at all, so I am asking if there is a way around this, or if there is an alternative way of approaching this problem.
I tried adding a white graphic symbol over the top of the scrollbar (covering it up)), and causing it to only become invisible (thus revealing the scrollbar) if the scrollbar itself is needed, but the scrollbar component doesn't seem to recognise the '.visible' caommand and so this didn't work at all.
Any ideas?