I try to make a simple game. Users can add any object from slider list by tapping. Slider list menu is larger than screen size. So user can drag the menu lefto right or vice versa. Slider menu list is ok. But after siliding (move event) with lifting finger on the screen without choosing a button that dermined by depending on the finger on which button works. I am having a problem with draggable menu including menu button items. At the end of drag operation (when I lift my finger from the screen) a button sub item works because of its MOUSE_UP code.
I need drag end drop my menu. After drop menu button items listeners should start for release (MOUSE_UP). How can I separete them?
I read some similar messages but I couldnt solve my problem.
Sory for my poor English.
My code:
PHP Code:
addEventListener(MouseEvent.MOUSE_MOVE, dragStart);
addEventListener(MouseEvent.MOUSE_UP, dragStop);
function dragStart(e:MouseEvent):void {
e.currentTarget.startDrag(false,new Rectangle(0,0,500,0));
}
function dragStop(e:MouseEvent):void {
e.currentTarget.stopDrag(false,new Rectangle(0,0,500,0));
}