Dynamic Scrollbar
- Started
- Last post
- 2 Responses
- brandonbleed
Hey,
I'm currently using a scrollbar that I got from Kirupa. I have my site set up with with 6 different navigation buttons, each button should load a new text file. To do this, I have a movie-clip with 6 frames in it. Each frame has this scrollbar on it and will load the correct text file depending on which button you click in the navigation. Everything works fine, except the scrollbar won't refresh itself for each different text file that loads. The scrollbar loads when the site loads, and then stays the same every time a new text file is loaded. Can anyone tell me how to make the scrollbar refresh each time a new text file is loaded?Here is the scrollbar I used from Kirupa: http://www.kirupa.com/developer/…
Also, here is a test version of the site: http://www.bleedmedia.com/edrose…
And here is the actionscript used for the scrollbars:
loadText = new LoadVars();
loadText.load("news.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.textbox1;
};Thanks, I really appreciate the help!
- UndoUndo0
put the scroll bar code inside a function and call the function when you load new text.
if that doesn't work paste yr code at
http://www.pastebin.se and I'll try to help