# Need help for checking direction movement of cards

**URL:** <https://forum.kirupa.com/t/need-help-for-checking-direction-movement-of-cards/297025>\
**Category:** Uncategorized\
**Created:** [September 24, 2009, 10:48am UTC](https://forum.kirupa.com/t/need-help-for-checking-direction-movement-of-cards/297025 "2009-09-24T10:48:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adBuryD](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@adBuryD](https://forum.kirupa.com/u/adBuryD)\
**Post date:** [September 24, 2009, 10:48am UTC](https://forum.kirupa.com/t/need-help-for-checking-direction-movement-of-cards/297025/1 "2009-09-24T10:48:45Z")

</div>

hi friends,  
i am having a problem if anyone could help would be great…  
i am using onpress startdrag and on mousemove if the \_y position of the current card ie equal to the \_ypos of the next card the next card will move on to the prev y this works well with one col of 4 cards but when I add more columns moving one card from one col over a card of the other col causes problems. I want to know if this mouse movement detection could be used in making such an application… link below was given by [glosrfc](http://www.kirupa.com/forum/member.php?u=33826)  
Or could it be done some other way  
I would very much appreciate a reply…

[http://www.kirupa.com/developer/acti…\_direction.htm](http://www.kirupa.com/forum/../developer/actionscript/detecting_mouse_direction.htm)

```
    pls find the fla in the below thread if you need to know what i am doing exactly...

```

> **[AS2 Need help with script for checking mousedirection](https://www.kirupa.com/forum/showthread.php?p=2504087)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

thank you
