Adding a line of code to HTML5 output init() function
I have a need to add a couple of lines of code to the end of the init() function...used by my engine. Currently I have to manually add it every time I re-publish my content. Is there a way to have it automatically add it every time I re-publish?
function init() {
canvas = document.getElementById("canvas");
anim_container = document.getElementById("animation_container");
dom_overlay_container = document.getElementById("dom_overlay_container");
var comp=AdobeAn.getComposition("9249BD2A01D4914B9F884593FD1C9237");
var lib=comp.getLibrary();
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
var lib=comp.getLibrary();
loader.loadManifest(lib.properties.manifest);
// ADDED CODE
window.parent.nextType = "timer";
window.parent.iframe_loaded();
}