# Dragging up and down only and left and right only

**URL:** <https://forum.kirupa.com/t/dragging-up-and-down-only-and-left-and-right-only/256716>\
**Category:** flash\
**Created:** [April 6, 2008, 2:09pm UTC](https://forum.kirupa.com/t/dragging-up-and-down-only-and-left-and-right-only/256716 "2008-04-06T14:09:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brucelines](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@Brucelines](https://forum.kirupa.com/u/Brucelines)\
**Post date:** [April 6, 2008, 2:09pm UTC](https://forum.kirupa.com/t/dragging-up-and-down-only-and-left-and-right-only/256716/1 "2008-04-06T14:09:21Z")

</div>

I have a movieclip in the centre of a cross and want to make it move only along the lines of that cross.

Is this possible with startDrag or do I need more complicated method?

To illustrate:  
 ![](http://www.wenguslives.com/special/diagram.gif)

If you’ve moved left or right, you can’t move up or down and vice versa.

Much appreciated if someone can simply say yes or no to this idea. More appreciation if someone could provide sample code it :thumb:
