# Controlling a movieclip's internal timeline w/ x+y

**URL:** <https://forum.kirupa.com/t/controlling-a-movieclips-internal-timeline-w-x-y/309697>\
**Category:** Uncategorized\
**Created:** [May 21, 2010, 6:15pm UTC](https://forum.kirupa.com/t/controlling-a-movieclips-internal-timeline-w-x-y/309697 "2010-05-21T18:15:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![getrhythm](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@getrhythm](https://forum.kirupa.com/u/getrhythm)\
**Post date:** [May 21, 2010, 6:15pm UTC](https://forum.kirupa.com/t/controlling-a-movieclips-internal-timeline-w-x-y/309697/1 "2010-05-21T18:15:34Z")

</div>

Hello

Im really struggling with controlling a movieclip (frame-by-frame images w/ stop(); actions) by using the mouses horizontal position on the main stage. So basically I want to turn my stage into a showreel of images. Lets say the stage is 50 pixels; i would want some kind of code that would divide up the total length of my m/cs timeline, in order to show the first frame of the m/c when the y-axis is at 0, the last keyframe of the m/c when the y-axis = 500.

I have tried to use rollover commands on (miniscule) hit states covering the entire stage, but there must be a better way ( i plan on updating the images m/c a lot) ie. a lovely big chunk of confusing code?

Does anyone have any idea?

Struggling man down! Dan  
:ex::ex::ex:
