I have a LayoutGroup with horizontal layout.

I want to give the player the ability to swipe & select multiple cards like this :

currently the player has to select cards individually.
this is the code I wrote based on my understanding but its not working :
layoutGroup.addEventListener(TouchEvent.TOUCH, touchHandler);
private function touchHandler(event:TouchEvent):void {
var touch_began:Touch = event.getTouch(stage, TouchPhase.BEGAN);
var touch_moved:Touch = event.getTouch(stage, TouchPhase.MOVED);
var touch_ended:Touch = event.getTouch(stage, TouchPhase.ENDED);
var target:Object = event.target as Object;
var targetPar:Object = target.parent as MainCard;
if(touch_began){
if (targetPar.notSelected) {
targetPar.select();
}
}
if (touch_moved) {
if (layoutGroup.bounds.containsPoint(globalToLocal(new Point(touch_moved.globalX, touch_moved.globalY)))) {
var localPointInLayout:Point = layoutGroup.globalToLocal(new Point(touch_moved.globalX, touch_moved.globalY));
for (var i:int = 0; i < 5; i++) {
var child:MainCard = cards_array[i]; //cards_array contains all cards
if (child.hitTest(localPointInLayout)) {
if (targetPar.notSelected) {
targetPar.select();
}
}
}
}
}
}
what am i doing wrong ?