Skip to main content
November 29, 2007
Answered

Simple movie clip scrolling

  • November 29, 2007
  • 2 replies
  • 794 views
my movie

Ok. See the boxes on the right? Those will be grouped into a movie clip, behind a mask, but obviously I can take care of that.

See the scrollbar on the far right? I want all nine boxes to scroll up when the user moves the scrollbar down, and vice-versa. I would like this to work like a browser window scrollbar, so, for example, moving the scrollbar one third of the way down moves the boxes one-third of the way up.

Again, the little boxes are grouped into one movie clip.

I guess this is not a very difficult task, but for some reason I am having a hard time with it. Also, I haven't been able to find anything on google which directly relates.

Can anyone help?


Thank in advance!! Kindest regards,
-joshua[
This topic has been closed for replies.
Correct answer
Here you go.

Enjoy.


Thank you!!

Code looks great by the way.


Thanks again! Best,
-joshua

2 replies

November 29, 2007
By the way, I forgot to mention, this needs to be written in ActionScript 1, as the app is Flash 6.


Thanks!! Best,
-joshua
November 30, 2007
Anyone have any insight into this seemingly simple problem?

I'd love to get this finished :-)


Thanks again,
-j
Inspiring
December 1, 2007
Hi dot-comet

I have managed to get a easing slider to work. ITS HERE

The scrolling text is the code i used. Mind you this was a testing swf, so the bulk of the code was placed on the scrollBar it's self. while the formula is on a frame.
The scroller works according to the size of the mask, and the field scrolls according to it's _height.

I've added comments to the code, to guide you through what is going on.
Inspiring
November 29, 2007
Hi dot-comet

The way i would make this scroller is to increase or decrease the MovieClip (which holds your thumbs) _y property.

You could make a simple math equation that will scroll your movieClip's _y property according to the _height of the movieClip as a whole, and in relation to your scrollBar's properties.

Im not a Math genius, but i will try this out as i think i could use an equation like this.

kglad is the Math guru on these forums, he might give you some idea for a formula.
i'll let you know what i come up with.
November 29, 2007
Hi Sketchsta,

Yes, the formula is specifically what I need :-)

Thanks for your help, and I can't wait to see the answer.


Thanks again! Best,
-joshua