# Need help with fixing a bug in my code that swaps cards onmousemove

**URL:** <https://forum.kirupa.com/t/need-help-with-fixing-a-bug-in-my-code-that-swaps-cards-onmousemove/298630>\
**Category:** flash\
**Created:** [October 22, 2009, 5:20am UTC](https://forum.kirupa.com/t/need-help-with-fixing-a-bug-in-my-code-that-swaps-cards-onmousemove/298630 "2009-10-22T05:20:00Z")\
**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:** [October 22, 2009, 5:20am UTC](https://forum.kirupa.com/t/need-help-with-fixing-a-bug-in-my-code-that-swaps-cards-onmousemove/298630/1 "2009-10-22T05:20:00Z")

</div>

hello friends,

I have posted this problem earlier too, back then i was in the very initial stage of my code but now i have completed my file and need some help fixing a bug in the file.The basic idea is to arrange the cards in order user seem fit but the problem i am facing is that \*when i swap cards on mousemove a particular card doesn’t have its properties updated it shows xpos ypos and its col and row id as undefined until i click on it and then only the card takes its properties \*I know i am not setting something properly some where but am kind of totally clueless about it.

I am attaching the fla and xml here . the xml is only for the increasing or decreasing the length of the columns and rows  
**I would appreciate any help and thank you in advance .**
