Skip to content

anim-format (runtime format) / bubbleClipEvent

Function: bubbleClipEvent() ​

ts
function bubbleClipEvent<C>(
   clip, 
   symbol, 
   name, 
   value, 
   frame, 
   fire
): ClipEvent<unknown, C>;

Fires name on clip (stored frame frame of symbol), then on every clip holding it, until one stops the event. A destroyed clip emits nothing; a destroyed clip on the way up is skipped (the walk goes on above it). fire hands the event to one clip's listeners.

Type Parameters ​

Type Parameter
C extends EmitClip<C>

Parameters ​

ParameterType
clipC
symbolAnimSymbol
namestring
valueunknown
framenumber
fire(clip, event) => void

Returns ​

ClipEvent<unknown, C>

HereSplash — 2D animation for the web