Skip to content

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.

Methods


  • 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.

Events


Screenshots


1

Clone this wiki locally