# Adding function to slider

**URL:** <https://forum.kirupa.com/t/adding-function-to-slider/218607>\
**Category:** flash\
**Created:** [March 9, 2007, 4:36am UTC](https://forum.kirupa.com/t/adding-function-to-slider/218607 "2007-03-09T04:36:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrloftheCity](https://avatars.discourse-cdn.com/v4/letter/g/ccd318/32.png) [@GrloftheCity](https://forum.kirupa.com/u/GrloftheCity)\
**Post date:** [March 9, 2007, 4:36am UTC](https://forum.kirupa.com/t/adding-function-to-slider/218607/1 "2007-03-09T04:36:32Z")

</div>

I have been using Flash for years, but am fairly new to advanced AS.

I have been asked 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. I’ve checked the tutorial at [http://www.kirupa.com/developer/mx/slider.htm](http://www.kirupa.com/developer/mx/slider.htm), but do not see the code in the FLA file that changes the numbers in the box below the slider.

Thanks for any help!
