private function mouseDown(e:MouseEvent):void
{
addEventListener(MouseEvent.MOUSE_MOVE, handleMouseMove);
}
private function handleMouseMove(e:MouseEvent):void
{
//Code to get display object if mouseX and Y is intercepting a cell
//Tell said cell that it has been selected
}
private function mouseUp(e:MouseEvent):void
{
removeEventListener(MouseEvent.MOUSE_MOVE, handleMouseMove);
}
1条答案
按热度按时间fcg9iug31#
你可以...
Here's一些是从一个快速搜索如何检测鼠标是否在一个显示对象上。应用它,你就可以了。