# Drag constraints

**URL:** <https://forum.kirupa.com/t/drag-constraints/329729>\
**Category:** flash\
**Created:** [October 8, 2012, 9:17am UTC](https://forum.kirupa.com/t/drag-constraints/329729 "2012-10-08T09:17:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crimson1702](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@Crimson1702](https://forum.kirupa.com/u/Crimson1702)\
**Post date:** [October 8, 2012, 9:17am UTC](https://forum.kirupa.com/t/drag-constraints/329729/1 "2012-10-08T09:17:21Z")

</div>

[COLOR=#000000][FONT=verdana]i have a field with 36 pieces in it but now i want to drag a piece only horizontal of its current location or vertical… i know i can do it with the rectangle parameter in the startDrag method but i can only move horizontal or move vertical not both. so actually i want that the piece can move in a cross shape so left and right of it’s [/FONT][/COLOR][start](http://www.actionscript.org/forums/showthread.php3?t=276184#)[COLOR=#000000][FONT=verdana] position or up and down of it’s start position.[/FONT][/COLOR]
