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

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.