Copy link to clipboard
Copied
The code you showed is nearly five years old, and so it's not surprising that the current publish code looks different.
Many people solve the problem of needing to only upload one file by having the JavaScript included in the HTML. Would that approach do the same thing for you?
Copy link to clipboard
Copied
Trying to manually smash together your JS and Animate's JS is a path that leads only to pain and suffering. Just embed the animation in an iframe.
Copy link to clipboard
Copied
Thanks for responding, this is how the files where exported last time (which might be a better explanation)
This was taken from the html and inserted at the top:
jQuery(document).ready(function($) {
canvas = document.getElementById("canvas");
exportRoot = new lib._13TStoresRail();
stage = new createjs.Stage(canvas);
stage.addChild(exportRoot);
stage.update();
createjs.Ticker.setFPS(30);
createjs.Ticker.addEventListener("tick", stage);
});
You are correct but this is the way its been built and I'm trying to facilitate. Do you know how to export from AA in the manner above?
Copy link to clipboard
Copied
Nope, I'm no fan of sticking my hand in the blender like that. If you're still determined to stick with your approach, all I can recommend is copying everything and see what happens.
Copy link to clipboard
Copied
Yep, at the moment I'm just trying to follow whats been done before
Copy link to clipboard
Copied
The code you showed is nearly five years old, and so it's not surprising that the current publish code looks different.
Many people solve the problem of needing to only upload one file by having the JavaScript included in the HTML. Would that approach do the same thing for you?
Copy link to clipboard
Copied
Potentially, I've tried publishing it with everything included into the .html file. I'll have another punt at that and come back.
Thanks for answering
Find more inspiration, events, and resources on the new Adobe Community
Explore Now