Node.EventType Class
Module: cc
The event type supported by Node
Index
Properties
TOUCH_STARTStringThe event type for touch start event, you can use its value directly: 'touchstart'TOUCH_MOVEStringThe event type for touch move event, you can use its value directly: 'touchmove'TOUCH_ENDStringThe event type for touch end event, you can use its value directly: 'touchend'TOUCH_CANCELStringThe event type for touch end event, you can use its value directly: 'touchcancel'MOUSE_DOWNStringThe event type for mouse down events, you can use its value directly: 'mousedown'MOUSE_MOVEStringThe event type for mouse move events, you can use its value directly: 'mousemove'MOUSE_ENTERStringThe event type for mouse enter target events, you can use its value directly: 'mouseenter'MOUSE_LEAVEStringThe event type for mouse leave target events, you can use its value directly: 'mouseleave'MOUSE_UPStringThe event type for mouse up events, you can use its value directly: 'mouseup'MOUSE_WHEELStringThe event type for mouse wheel events, you can use its value directly: 'mousewheel'POSITION_CHANGEDStringThe event type for position change events.ROTATION_CHANGEDStringThe event type for rotation change events.SCALE_CHANGEDStringThe event type for scale change events.SIZE_CHANGEDStringThe event type for size change events.ANCHOR_CHANGEDStringThe event type for anchor point change events.COLOR_CHANGEDStringThe event type for color change events.CHILD_ADDEDStringThe event type for new child added events.CHILD_REMOVEDStringThe event type for child removed events.CHILD_REORDERStringThe event type for children reorder events.GROUP_CHANGEDStringThe event type for node group changed events.
Details
Properties
TOUCH_START
The event type for touch start event, you can use its value directly: 'touchstart'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:135 |
TOUCH_MOVE
The event type for touch move event, you can use its value directly: 'touchmove'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:142 |
TOUCH_END
The event type for touch end event, you can use its value directly: 'touchend'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:149 |
TOUCH_CANCEL
The event type for touch end event, you can use its value directly: 'touchcancel'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:156 |
MOUSE_DOWN
The event type for mouse down events, you can use its value directly: 'mousedown'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:164 |
MOUSE_MOVE
The event type for mouse move events, you can use its value directly: 'mousemove'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:171 |
MOUSE_ENTER
The event type for mouse enter target events, you can use its value directly: 'mouseenter'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:178 |
MOUSE_LEAVE
The event type for mouse leave target events, you can use its value directly: 'mouseleave'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:185 |
MOUSE_UP
The event type for mouse up events, you can use its value directly: 'mouseup'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:192 |
MOUSE_WHEEL
The event type for mouse wheel events, you can use its value directly: 'mousewheel'
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:199 |
POSITION_CHANGED
The event type for position change events. Performance note, this event will be triggered every time corresponding properties being changed, if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:207 |
ROTATION_CHANGED
The event type for rotation change events. Performance note, this event will be triggered every time corresponding properties being changed, if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:217 |
SCALE_CHANGED
The event type for scale change events. Performance note, this event will be triggered every time corresponding properties being changed, if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:227 |
SIZE_CHANGED
The event type for size change events. Performance note, this event will be triggered every time corresponding properties being changed, if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:237 |
ANCHOR_CHANGED
The event type for anchor point change events. Performance note, this event will be triggered every time corresponding properties being changed, if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:247 |
COLOR_CHANGED
The event type for color change events. Performance note, this event will be triggered every time corresponding properties being changed, if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:257 |
CHILD_ADDED
The event type for new child added events.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:267 |
CHILD_REMOVED
The event type for child removed events.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:274 |
CHILD_REORDER
The event type for children reorder events.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:281 |
GROUP_CHANGED
The event type for node group changed events.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/CCNode.js:288 |