JS Template Issues on Export for HTML5 Banners
Our office uses Animate to make HTML5 Banner ads. Since I upgraded from 2019 to 2020 Animate, my exports would not display the ad, even while the Google HTML5 Validator indicates everything is in order. Upon comparing .js files exported from 2019 and 2020 versions of Animate, I've discovered the code that either needed to be added to or removed from the 2020 export for it to work.
this._renderFirstFrame();
this._renderFirstFrame();
this._renderFirstFrame();
this._renderFirstFrame();
this._renderFirstFrame();
this._renderFirstFrame();
this.instance.parent = this;
this.instance.parent = this;
this.instance.parent = this;
this.ctaBtn.parent = this;
this.instance_1.parent = this;
this.instance_2.parent = this;
}).prototype = p = new createjs.Stage();
}).prototype = p = new createjs.StageGL();
getStage: function() { return exportRoot.getStage();},
getStage: function() { return exportRoot.stage; },Of course this may differ based on the assets you have in your banner, but I was able to make it work if I removed all instances of the below and change createjs.StageGL to createjs.Stage, which I assume will be consistent in any export.
this._renderFirstFrame();I'm not well versed in javascript, so I'm not sure why this code is new for 2020 and/or why it breaks files originally created in 2019.
Hopefully this helps anyone else having a similar issue. My question for Adobe: is this a new export template for 2020 and if so, is there some setting that is generating this code that I can adjust?
