Cutscene is a class for playing a single EaselJS animation synced to a single audio file with springroll.Sound, with optional captions.
springroll.easeljs.Cutscene
options
options
Object
The runtime specific setup data for the cutscene.
clip
createjs.Container
The movieclip animation
width
Int
The width of the animation
height
Int
The height of the animation
display
String | springroll.AbstractDisplay
The display or display id of the EaselJSDisplay to draw on.
audio
Array
The audio being played
[imageScale=1]
Number
optional
Scaling to apply to all images loaded for the Cutscene.
[captions]
springroll.Captions
optional
A Captions instance to display captions text on.
cacheByBounds
[buffer=0]
[scale=1]
[buffer=0]
Int
optional
[scale=1]
Number
optional
cacheByRect
rect
[buffer=0]
[scale=1]
rect
createjs.Rectangle
[buffer=0]
Int
optional
[scale=1]
Number
optional
resize
width
height
Listener for when the Application is resized.
width
Int
The new width of the display.
height
Int
The new height of the display.
start
callback
Starts playing the cutscene.
callback
Function
The function to call when playback is complete.
stop
[doCallback=false]
Stops playback of the cutscene.
[doCallback=false]
Boolean
optional
If the end callback should be performed.
_activeSyncAudio
The queue of sound instances of playing audio that the animation should be synced to. Only the most recent active one will be synced to.
_audio
Time sorted list of audio that needs to be played, as well as information on if they should be synced or not.
_soundStartTime
The time in seconds into the animation that the current synced audio started.