Class to create tiered hinting or randomized hinting. this.app.hints.group() .vo('Something', onCompleted) .vo('Another', onComplete) .addTier() .vo('DetailedSomething', onComplete) .vo('DetailedAnother', onComplete);
springroll.GroupHint
hints
done
hints
springroll.HintsPlayer
The instance of the hints
done
Function
called on hint done
_onPlayComplete
original
Handle when the media completes
original
Function
The original callback, either complete or cancelled
addTier
Add a new timeout tier of hinting
The instance of the group hint, for chaining
anim
instance
events
onComplete
[onCancel]
Add an animator hint to the player
instance
createjs.MovieClip |
The instance of the clip to play with Animator
events
String | Array | Object
The event aliases to play, see Animator.play
onComplete
Function
Call when the VO is done playing
[onCancel]
Function | Boolean
optional
Call when the VO is cancelled playing, a value of true sets onComplete to also be the onCancelled callback.
The newly added hint
func
onStart
Add an animator hint to the player. If you use this hinting method, you NEED to re-enable the hinting when it's done. Whereas the VO and ANIM methods with automatically re-enable the hinting button.
onStart
Function
The instance of the clip to play with Animator
The newly added hint
nextTier
Advance to the next tier of hints.
The instance of the group hint, for chaining
vo
[idOrList]
onComplete
[onCancel]
Add a VO hint to the player.
The newly added hint