Millions of interactive Flash animations, banners, and educational games were originally built in the Adobe Flash / Animate timeline editor. Adobe Animate's HTML5 Canvas document export leverages the CreateJS (EaselJS/TweenJS) library to preserve MovieClip timelines, nested symbol hierarchies, and vector strokes directly in modern web browsers.
1. CreateJS Stage & MovieClip Lifecycle
// CreateJS HTML5 Canvas Initialization
const canvas = document.getElementById('game-canvas');
const stage = new createjs.Stage(canvas);
createjs.Touch.enable(stage);
// Instantiate exported Adobe Animate root MovieClip
const exportRoot = new lib.InteractiveAnimation();
stage.addChild(exportRoot);
// Synchronize ticker with high-precision RAF
createjs.Ticker.timingMode = createjs.Ticker.RAF_SYNCHED;
createjs.Ticker.framerate = 60;
createjs.Ticker.addEventListener('tick', stage);