# Controlling frames in MC with y or x position from other MC?

**URL:** <https://forum.kirupa.com/t/controlling-frames-in-mc-with-y-or-x-position-from-other-mc/192515>\
**Category:** flash\
**Created:** [June 29, 2006, 3:01am UTC](https://forum.kirupa.com/t/controlling-frames-in-mc-with-y-or-x-position-from-other-mc/192515 "2006-06-29T03:01:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [June 29, 2006, 3:01am UTC](https://forum.kirupa.com/t/controlling-frames-in-mc-with-y-or-x-position-from-other-mc/192515/1 "2006-06-29T03:01:16Z")

</div>

Hi,

It’s official I cant code if my life depended on it, not sure why but the simplest codes are killing that used to work before :run:.

I’m trying to make it so, when my MC instance “dragger” is dragged down every pixel, the other MC with instance “knife” with an animation inside will go forward 1 frame (per pixel dragger moves). When dragger is released, it should snap back to original position as well as knife snapping back into 1st frame.

Basically I’m trying to learn a flip-book type of effect.

Even my drag codes arent working, I’m trying to set boundaries for \_x and \_y values of dragger as well but no luck here. Any help is appreciated, at least with this dragging bit lol! Thanks.
