Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Contributor ,
Apr 26, 2017 Apr 26, 2017

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?

With the bestestest wishes! )
675
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Apr 26, 2017 Apr 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>

...
Translate
Enthusiast ,
Apr 26, 2017 Apr 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 03, 2017 May 03, 2017
LATEST

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! )
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines