-
Notifications
You must be signed in to change notification settings - Fork 120
UIFrameAnimation
YinLijun edited this page Mar 3, 2015
·
1 revision
UIFrameAnimation is frame animation, it is a set of images played in turn. like UISprite, you can set its physicas attributes: shape, density, and etc.
It is a subclass of UIElement.
-
gotoAndPlay(startFrame, endFrame, repeatTimes, onDone, onOneCycle) Play the images in given range, after repeatTimes times, it will call onDone, for each cycle it will call onOneCycle.
-
play(groupName, repeatTimes, onDone, onOneCycle) Play the images of groupName, after repeatTimes times, it will call onDone, for each cycle it will call onOneCycle.
-
setFrameRate(frameRate) Set frame rate.
- onClick
- onUpdateTransform
- onBeginContact
- onEndContact
- onPointerDown
- onPointerMove
- onPointerUp
- onDoubleClick
- onMoved
