Click Tag Button - External URL link not working
Hi All,
I'm new to Animate, but I built my HTML5 ad which I want to add to the Google Display Network.
The ad works just as I want it, however, I can't get the ClickTag to work.
I've made the Click Tag the top layer, made a rectangle the full size of the ad and convereted it to a symbol, cut it from frame 1 and added it to the hit frame.
On Frame 1 in the Click Tag layer I have added the following script to the 1st frame:
clickBtn.addEventListener("click", function() {
window.open(window.clickTag, "https://aistudio.je/work/");
});
I have a script layer at the bottom of the layers with the following script:
var _this = this;
// Stops timeline on X loop or return to start
if (!this.looped) this.looped = 1;
if (this.looped++ == 3) this.stop();
else _this.gotoAndPlay('start');
The ad works as I want it but I cannot get this to work when you click on the ad to take you to the URL destination specified.
