# Slider question

**URL:** https://forum.kirupa.com/t/slider-question/62738
**Category:** Uncategorized
**Created:** [August 30, 2004, 11:45pm UTC](https://forum.kirupa.com/t/slider-question/62738 "2004-08-30T23:45:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![markhegz](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@markhegz](https://forum.kirupa.com/u/markhegz)
#### Post date: [August 30, 2004, 11:45pm UTC](https://forum.kirupa.com/t/slider-question/62738/1 "2004-08-30T23:45:33Z")

</div>

i want to have a slider on my main timeline that controls the timeline of a movieclip.

for instance…the movieclip has 10 key frames. As you move the slider to the right i want i want the playhead to advance until it reaches frame 10.

does this make sense? any ideas on how to do this?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 31, 2004, 9:00am UTC](https://forum.kirupa.com/t/slider-question/62738/2 "2004-08-31T09:00:37Z")

</div>

make a slider image in photoshop.  
make its slices.  
for a slider like  
\<----|-----\>  
you will need images like

\<-, -, -|-, -\>

place slider images onto the stage. and convert all into movieclips.

use the “-” image as a background.

in the -|- image, put the on mouseover code which allows it to be dragged. like  
this.startdrag();

in the mouseMove :

1. remember to keep the -|- image within the bounds of the slider.
2. when the \_y becomes “\<-”.\_y + (say 5) gotoAndPlay(3);

if i am too vague, tell me.
