Constructor

new (?frame:Frame)

Variables

@:value(0)currentFrame:Int = 0

当前帧

@:value(false)isPlaying:Bool = false

是否播放中

@:value(-1)loop:Int = -1

播放次数

Methods

dynamiconComplete ():Void

@:value({ loop : 0 })play (loop:Int = 0):Void

播放动画

Parameters:

loop

播放次数

@:value({ loop : 0 })playGo (frame:Int, loop:Int = 0):Void

在指定帧开始播放

Parameters:

frame
  • 指定播放帧
loop
  • 播放次数

@:value({ frame : -1 })stop (frame:Int = -1):Void

停止至某一帧

Parameters:

frame
  • 指定停止帧

Static methods

staticcreateAnimation (fps:Int, bitmaps:Array<Frame>):BAnimation

Inherited Variables

Defined by BImage

Defined by BDisplayObject

@:keepbaseBuilder:Builder

基础生成baseBuilder,该属性只有通过MiniEngine创建时生效。

@:keepread onlycurHeight:Float

获取实际高度(原图尺寸,旋转不计算)

@:keepread onlycurWidth:Float

获取实际宽度(原图尺寸,旋转不计算)

@:keepcustomData:Dynamic

自定义数据,默认为null,可以作为扩展数据使用

@:value(true)@:keepmouseEnabled:Bool = true

@:value(null)@:keepname:String = null

Inherited Methods

Defined by BImage

getClickBounds (tile:Tile):Rectangle

setFrame (frame:Frame):Void

设置新帧

Parameters:

null

frame

set_id (id:Int):Int

设置ID时,更改当前的Frame

Parameters:

id

Returns:

Int

Defined by BDisplayObject

@:keep@:keepgetParent ():BDisplayObjectContainer

获取父节点

Returns:

BDisplayObjectContainer

@:keepgetStageHeight ():Float

经过了缩放计算的舞台高度

 *  @return Float

@:keepgetStageWidth ():Float

经过了缩放计算的舞台宽度

 *  @return Float

@:keeponInit ():Void

@:keepsetFrameEvent (isFrame:Bool):Void

@:keeptoString ():String