Skip to main content
Yura Timoshenko
Inspiring
April 26, 2017
Answered

HELP! Trying to put AS2 ClickTag code into Animate CC canvas!

  • April 26, 2017
  • 2 replies
  • 706 views

Hello! I am making an HTML5 banner and the click tag by specs should be on (release) {getURL(_level0.clickTag, "_blank"); } - which is AS2 format.

The problem is that when I export HTML5 canvas from Animate CC it changes format and the click area after exporting of all assets is changed and when I check the exported creative on HTML5 Validator it says that there is "Missing click tag check" - seems like it messes up the click URL

I understand that the best way to make this tag work is after exporting creative to put this tag on DIV object in exported HTML file presumably here:

</head>

<body onload="init();" style="margin:0px;">

  <div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:728px; height:90px">

  <canvas id="canvas" width="728" height="90" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"></canvas>

  <div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:728px; height:90px; position: absolute; left: 0px; top: 0px; display: block;">

  </div>

  </div>

</body>

</html>

But I do not know where to put it to make it work ( any ideas?

This topic has been closed for replies.
Correct answer rezun8

you dont put that into a Canvas file. Instead code the url into the html that is generated

such as :

<!-- CLICKTAG SCRIPT INCLUSION -->

  <script type="text/javascript">

     var clickTag = "http://www.universalorlando.com";

    </script>

after the title tags

and then below you also add:

<body onload="init();" style="background-color:#D4D4D4;margin:0px;">

  <a href="javascript:window.open(window.clickTag)"><canvas id="canvas" width="160" height="600" style="background-color:#000000"></canvas></a>

</body>

Also look in the Forums here for Animate Ad Developemnt

2 replies

Yura Timoshenko
Inspiring
May 3, 2017

Thanks a lot! It is a banner for Euronews and their specs seem confusing at times. I will try it but they have to test it still )))

With the bestestest wishes! )
rezun8
rezun8Correct answer
Inspiring
April 26, 2017

you dont put that into a Canvas file. Instead code the url into the html that is generated

such as :

<!-- CLICKTAG SCRIPT INCLUSION -->

  <script type="text/javascript">

     var clickTag = "http://www.universalorlando.com";

    </script>

after the title tags

and then below you also add:

<body onload="init();" style="background-color:#D4D4D4;margin:0px;">

  <a href="javascript:window.open(window.clickTag)"><canvas id="canvas" width="160" height="600" style="background-color:#000000"></canvas></a>

</body>

Also look in the Forums here for Animate Ad Developemnt