Class: MovieClip

Bling. MovieClip

new Bling.MovieClip(textures, engine, autoUpdate)

bling/MovieClip.js, line 14
Name Type Default Description
textures array.<string>
engine Bling.Engine Bling.Engine.getInstance() optional
autoUpdate boolean true optional

Extends

  • EventEmitter

Members

readonlycurrentFrame

loopnumber

Default Value:
  • true

textures

readonlytotalFrames

Methods

staticBling.MovieClip.cleanup(ref)

bling/MovieClip.js, line 73
Name Type Description
ref BlingComponent

要清除 MovieClip 的对象

staticBling.MovieClip.fromFrames(frames, engine)

bling/MovieClip.js, line 65
Name Type Default Description
frames array.<object>
engine Bling.Engine Bling.Engine.getInstance() optional

staticBling.MovieClip.fromImages(images, engine)

bling/MovieClip.js, line 56
Name Type Default Description
images array.<string>
engine Bling.Engine Bling.Engine.getInstance() optional

getLoop(){boolean}

bling/MovieClip.js, line 181
Returns:
Type Description
boolean

getSpeed(){number}

bling/MovieClip.js, line 168
Returns:
Type Description
number

gotoAndPause(frames)

bling/MovieClip.js, line 138

通过帧间隔只播放该动画片段,在暂停时调用 play 可继续

Name Type Description
frames number | array.<number>
Example
mc.gotoAndPause(0, 5); // 从0帧开始播放,到第5帧暂停
mc.gotoAndPause(2, 4, 7); // 从2帧开始播放,到第4、7帧暂停

gotoAndPlay(frameNumber)

bling/MovieClip.js, line 121
Name Type Description
frameNumber number

gotoAndStop(frameNumber)

bling/MovieClip.js, line 109
Name Type Description
frameNumber number

play()

bling/MovieClip.js, line 96

reverse()

bling/MovieClip.js, line 154

setLoop(loop)

bling/MovieClip.js, line 175
Name Type Description
loop boolean

setSpeed(speed)

bling/MovieClip.js, line 162
Name Type Description
speed number

stop()

bling/MovieClip.js, line 84

Events

complete

bling/MovieClip.js, line 21
Name Type Description
event String | Symbol

frameChange

bling/MovieClip.js, line 31
Name Type Description
event String | Symbol

loop

bling/MovieClip.js, line 26
Name Type Description
event String | Symbol
Documentation generated by JSDoc 3.4.3 on Thu Jul 09 2020 18:39:28 GMT+0800 (CST)