For what it's worth, I've had great success using Animate and GSAP. To recap:
- Set your publish settings to not override the HTML.
- I have a basic HTML file I rename and update with the title, size, background color, GSAP script, clickTag script, etc. I'll post it below.
- I also add an invisible button (no scripting needed for that one, just a hit state the size of the canvas. You can simply reuse and resize the symbol)
- And do all my GSAP on its own layer on frame 1 out of habit.
- before submitting to DC, change your scripts to the ones from here: https://support.google.com/richmedia/answer/6307288
- I not only change the GSAP script but the createJS. Works great.
THIS HAS COMPLETELY CHANGED MY WORLD (note the caps).
Here's a sample of my HTML shell. The real work is in the .js file. <!--
NOTES:
1. All tokens are represented by '$' sign in the template.
2. You can write your code only wherever mentioned.
3. All occurrences of existing tokens will be replaced by their appropriate values.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>nameOfYourFLA</title>
<!-- write your code here -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/TweenMax.min.js"></script>
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script src="nameOfYourFLA.js"></script>
<script>
var canvas, stage, exportRoot;
function init() {
// --- write your JS code here ---
canvas = document.getElementById("canvas");
images = images||{};
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", handleFileLoad);
loader.addEventListener("complete", handleComplete);
loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt) {
if (evt.item.type == "image") { images[evt.item.id] = evt.result; }
}
function handleComplete(evt) {
exportRoot = new lib.nameOfYourFLA();
stage = new createjs.Stage(canvas);
stage.addChild(exportRoot);
stage.update();
stage.enableMouseOver();
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
}
</script>
<script type="text/javascript">var clickTag = "http://www.rag-bone.com";</script>
<!-- write your code here -->
</head>
<body onload="init();" style="background-color:#D4D4D4;margin:0px;">
<canvas id="canvas" width="300" height="250" style="background-color:#746658" onclick="javascript:window.open(window.clickTag)"></canvas>
</body>
</html>