new (?frame:Frame)
@:value(0)currentFrame:Int = 0
当前帧
dataProvider:AnimationData
@:value(false)isPlaying:Bool = false
是否播放中
@:value(-1)loop:Int = -1
播放次数
dynamiconComplete ():Void
@:value({ loop : 0 })play (loop:Int = 0):Void
播放动画
Parameters:
loop
@:value({ loop : 0 })playGo (frame:Int, loop:Int = 0):Void
在指定帧开始播放
frame
@:value({ frame : -1 })stop (frame:Int = -1):Void
停止至某一帧
staticcreateAnimation (fps:Int, bitmaps:Array<Frame>):BAnimation
curFrame:Frame
curParent:TextureAtlas
@:keepbaseBuilder:Builder
基础生成baseBuilder,该属性只有通过MiniEngine创建时生效。
@:keepread onlycurHeight:Float
获取实际高度(原图尺寸,旋转不计算)
@:keepread onlycurWidth:Float
获取实际宽度(原图尺寸,旋转不计算)
@:keepcustomData:Dynamic
自定义数据,默认为null,可以作为扩展数据使用
@:value(true)@:keepmouseEnabled:Bool = true
@:value(null)@:keepname:String = null
getClickBounds (tile:Tile):Rectangle
setFrame (frame:Frame):Void
设置新帧
null
set_id (id:Int):Int
设置ID时,更改当前的Frame
id
Returns:
Int
@:keep@:keepgetParent ():BDisplayObjectContainer
获取父节点
BDisplayObjectContainer
@:keepgetStageHeight ():Float
经过了缩放计算的舞台高度
* @return Float
@:keepgetStageWidth ():Float
经过了缩放计算的舞台宽度
@:keeponInit ():Void
@:keepsetFrameEvent (isFrame:Bool):Void
@:keeptoString ():String