[Flash CS3] [ActionScript 2.0] - Slowing Down Scrolling

Hello all!

I have a Dynamic Text Box and two buttons that function as an up and down button. When it comes to actually scrolling the information, these work great! However, it scrolls them waaaay too fast for my clients liking. Below is the code that I have for my buttons

Up Button:

on (rollOver) {
    this.onEnterFrame = function() { 
        Scroll_text.scroll = Scroll_text.scroll-1;
    }
}
on (rollOut) {
    delete this.onEnterFrame;
}

**
Down Button:**

on (rollOver) {
    this.onEnterFrame = function() { 
        Scroll_text.scroll = Scroll_text.scroll+1;
    }
}
on (rollOut) {
    delete this.onEnterFrame;
}

I was hoping there is a way that this can be done, using the code I am already using. I am pulling text in from a text file… using loadVars so hopefully I don’t have to change much.

Can anyone help? Thanks! :thumb2:

Question: what is your frame rate? also, what is the variable speed for?

The speed variable is actually an error, I am going to try and alter my post so that it is left out. I was just messing around with things.

My frame rate is at 16fps

As a side note, I tried changing my frame rate down to 10… it made all of my animations really choppy and laggy.

Hmm, have you tried changing the frame rate? Or, you can change it from +1 to 0.1? or some other decimal value under 1.

I actually tried decimals already, makes everything stop working. haha.

Anyhow, I have been looking everywhere and cannot find a solution :crying:

Frame rate?

Thanks for the response, I tried that as well… it just made everything look choppy and laggy.

try this:

    this.onEnterFrame = function() { 
        Scroll_text.scroll -= 1;
    }

Thanks once again for the reply! However, that did not work either.

Someone on Actionscript.org forums told me to put all of the text I need to scroll inside of a movie clip and do it that way… since I can have it scroll by pixels… or something like that.

That sounds like it is out of my league though, lol. Any suggestions?

Any way you could upload your file? I can’t imagine it’s too tricky of a fix.

^ Yeah, I was gonna ask him to do the same.

Sure thing! Here is the zipped file…

One thing to keep in mind, I have the fps set to 16. I want to keep it there, since it is the perfect fps to allow my movie’s animations to look fluid.

I didn’t attach the entire move since it would be way to large. I just created a new one with the scrolling function.

Thanks for the help!

Hmm, looks like the only fix for you would be to use a scrollbar. Here is you scrolling text with a scrollbar…I only attached the fla, and not the rest of the files. You’ll have to do that.