I need help with a drag n' drop chess game

Could anyone tell me why my code doesn’t work???

For some reason, my character only drops onto “/a1”

onClipEvent (load) {
var coordY:Number = 0;
var coordX:Number = 0;
}

on (press) {
startDrag(this, true);
coordY == 0;
coordX == 0;
}

on (release) {
[COLOR=#a9a9a9]//insert desired space as droptarget[/COLOR]
if (this._droptarget == “/a1”) {
stopDrag();
coordY == 1;
coordX == 1;
}
if (this._droptarget == “/a2”) {
stopDrag();
coordY == 1;
coordX == 2;
}
if (this._droptarget == “/a3”) {
stopDrag();
coordY == 1;
coordX == 3;
}
if (this._droptarget == “/a4”) {
stopDrag();
coordY == 1;
coordX == 4;
}
if (this._droptarget == “/a5”) {
stopDrag();
coordY == 1;
coordX == 5;
}
if (this._droptarget == “/a6”) {
stopDrag();
coordY == 1;
coordX == 6;
}
if (this._droptarget == “/a7”) {
stopDrag();
coordY == 1;
coordX == 7;
}
if (this._droptarget == “/a8”) {
stopDrag();
coordY == 1;
coordX == 8;
}
if (this._droptarget == “/b1”) {
stopDrag();
coordY == 2;
coordX == 1;
}
}

If you its difficult to understand, I can e-mail my .fla file to whoever will help me

thanks in advance,

HawK.

P.S. I have made an MC for each space on the board. They are the “droptargets”