Skip to main content
Participant
May 23, 2007
Question

Scroll Bar in Actionscript 2.0

  • May 23, 2007
  • 2 replies
  • 307 views
I had created a scroll bar function in Flash 6.0 (a few years back) and want to re-use this code to create a scroll bar in a flash movie that I am currenlty creating. I copied and pasted all of the elements and code, but the text does not scroll when exported in flash player 7 or 8. It only works in 6.0. When I publish this, it does not give me any errors so I have no idea where to look to see the problem. Also, the up and down arrows scroll the text just fine, it is just the bar itself that has the problem. Can someone please look over this code and let me know where things are going wrong.

THANKS!

This topic has been closed for replies.

2 replies

PF_teamAuthor
Participant
May 29, 2007
The text box is scrollable. Since this does work in flash player 6.0 and earlier, there is something with how the code is written. I am pretty sure the problem is in this section of the actionscript:

onClipEvent (mouseMove){
if (scrolling == "scrollbar") {
daTextBox.scroll = Math.round((scrollbar._y)/lineHeight + 1);
}
updateAfterEvent();

Any other ideas?????

Thanks.
Participating Frequently
May 23, 2007
My first thought is did you right click on the text box and make it scrollable?