请教一个按钮的功能的问题,各位大神。

我想做一个 当按钮检测到鼠标移动到自己身上的时候(鼠标不点击,就悬浮在按钮上) 鼠标变成一个小手(就想鼠标点在一个超链接上) 的那种效果。

我该怎么实现???按钮有这类事件吗?

知道的麻烦把那个方法的 函数名字写一下 感激不尽

1.给按钮设置监听addTouchEventListener();
2.回调中TouchEventType == TOUCH_EVENT_MOVED实现你所要的功能就好

网页游戏?

var button = yourButton; // 将yourButton改为你的按钮的名字
cc.eventManager.addListener(cc.EventListener.create({
event: cc.EventListener.MOUSE,
onMouseMove: function(event) {
var pos = button.convertToNodeSpace(event.getLocation());
if (0 <= pos.x && pos.x <= button._width && 0 <= pos.y && pos.y <= button._height) {
cc._canvas.style.cursor = ‘hand’;
} else {
cc._canvas.style.cursor = ‘default’;
}
}
}), button);

cursor的样式除了hand外还有很多,参考http://blog.csdn.net/lancefox/article/details/5063690