Having Problem in Drag & Drop Functionality

Hello there,
I am having problem in Drag & Drop Functionality.
Attached is the thumbnail what I am trying to do.
My Code is below:


var objectoriginalX:Number;
var objectoriginalY:Number;
var mySound:Sound = new Pass();

car.buttonMode = true;
car.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
car.addEventListener(MouseEvent.MOUSE_UP, dropObject);

camel.buttonMode = true;
camel.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
camel.addEventListener(MouseEvent.MOUSE_UP, dropObject);

cap.buttonMode = true;
cap.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
cap.addEventListener(MouseEvent.MOUSE_UP, dropObject);

cake.buttonMode = true;
cake.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
cake.addEventListener(MouseEvent.MOUSE_UP, dropObject);

cup.buttonMode = true;
cup.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
cup.addEventListener(MouseEvent.MOUSE_UP, dropObject);

cat.buttonMode = true;
cat.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
cat.addEventListener(MouseEvent.MOUSE_UP, dropObject);

function pickupObject(event:MouseEvent):void {
event.target.startDrag(true);
event.target.parent.addChild(event.target);
objectoriginalX = event.target.x;
objectoriginalY = event.target.y;
textrespone.text="";
}

function dropObject(event:MouseEvent):void {
event.target.stopDrag();
var matchingTargetName:String = “target” + event.target.name;
var matchingTarget:DisplayObject = getChildByName(matchingTargetName);
if (event.target.dropTarget != null && event.target.dropTarget.parent == matchingTarget){
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
event.target.removeEventListener(MouseEvent.MOUSE_UP, dropObject);
event.target.buttonMode = false;
event.target.x = matchingTarget.x;
event.target.y = matchingTarget.y;
textrespone.text=“bingo”;
mySound.play();

} else {
event.target.x = objectoriginalX;
event.target.y = objectoriginalY;
textrespone.text=“wrong”;
}
}