Skip to main content
Participating Frequently
April 7, 2007
Question

Scrubber

  • April 7, 2007
  • 2 replies
  • 332 views
I need to create a scrubber that starts in the middle and can be dragged both ways. As it is dragged, a sequence of images needs to be shown. Particularly, it needs to show a man gradually losing weight when dragging to the left, and gaining weight when going to the right. I already have the images, but need to know how to create this kind of scrubber.

Thanks for any help!

My FLA file so far can be seen here: http://www.terrieades.com/in_progress/flash/man.zip
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
April 7, 2007
are you in school?
Participating Frequently
April 8, 2007
I'm in college. About to graduate. I choose to spend this last semester learning AS and the more advanced features of Flash. This is a practice project I am working on.
kglad
Community Expert
Community Expert
April 8, 2007
well, you want to consider your movieclip (with the images) frames as function of the scrubber's position. if your scrubber's _x property is going to determine the movieclip's frame number, then you want:

kglad
Community Expert
Community Expert
April 7, 2007
attach your images to the timeline of a movieclip. set up an equation that returns the movieclip's frame to display as a linear function of the scrubber's position.

you know two positions (the extreme of each way) for the scrubber should correspond to frames showing the max weight gain and max weight loss so you can solve for the parameters of the linear equation.
Participating Frequently
April 7, 2007
I actually don't know anything about equations. I probably need to learn more about them before I attempt something like this.