Animation.EventType Class
Module: cc
The event type supported by Animation
Index
Properties
PLAYStringEmit when begin playing animationSTOPStringEmit when stop playing animationPAUSEStringEmit when pause animationRESUMEStringEmit when resume animationLASTFRAMEStringIf animation repeat count is larger than 1, emit when animation play to the last frameFINISHEDStringEmit when finish playing animation
Details
Properties
PLAY
Emit when begin playing animation
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/components/CCAnimation.js:51 |
STOP
Emit when stop playing animation
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/components/CCAnimation.js:58 |
PAUSE
Emit when pause animation
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/components/CCAnimation.js:65 |
RESUME
Emit when resume animation
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/components/CCAnimation.js:72 |
LASTFRAME
If animation repeat count is larger than 1, emit when animation play to the last frame
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/components/CCAnimation.js:79 |
FINISHED
Emit when finish playing animation
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/components/CCAnimation.js:86 |