From September, Flash will no longer be supported by Chrome. Prepare for the shift towards HTML5 by visiting our Flash to HTML5 help page

Check it out!

Adding clickTAG Variables

Important: From the 1st of September 2018, Flash Ads management will no longer be available. Starting from the 1st of January 2019, serving of Flash Ads will be stopped. For more information, please contact [email protected]


In order for ad-serving systems to track clicks when displaying Flash banners, the Flash banners must be programmed to use clickTAG variables instead of pre-defined URLs. The clickTAG variables are passed to the Flash file by an HTML page that shows the Flash banner. Thereby, the ad-serving systems can track the number of clicks and change the URL real-time, without having to modify the Flash banner.

Methods for implementing the clickTAG variables in Flash banners depend on the ActionScript version used in the banners. The methods do the same job and are only different in the coding. Adform supports both the ActionScript 2 and ActionScript 3 coded banners. If there is more than one target URL, please see the naming convention below:

var clickTAG;  // variable no. 1
var clickTAG2; // variable no. 2
var clickTAG3; // variable no. 3
var clickTAG4; // variable no. 4
var clickTAG5; // variable no. 5

Implementation of clickTAG variable

Implementation of the clickTAG variable depends on the version of the ActionScript you are using. Also, due to constantly increasing online security measures in internet browsers, pop-up blocking is becoming a common problem in the online advertising.

ActionScript 2.0 code:

on (release) {
    getURL(_root.clickTAG, _root.landingPageTarget);

ActionScript 3.0 code:

  • Download and install the Adform Creative Toolkit extension (detailed info can be found here);
  • When the Adform Creative Toolkit is installed, all the Adform components are placed in your Adobe Flash installation directory. You are able to see them by selecting Window → Components in the top Flash API menu;
  • Then drag and drop the AdformCore on the stage;
  • Create a button symbol on Flash API stage, and give it an instance name (e.g. button);
  • ClickTAG then can be implemented as follows:
button.addEventListener(MouseEvent.CLICK, ADFclicked);

function ADFclicked(event:MouseEvent) {
    AdfURLNavigator.navigateToUrl( AdfFlashVarsUtil.getParameter("clickTAG"), AdfFlashVarsUtil.getParameter("landingPageTarget"));

Note 1: Always make sure you attach the ActionScript code that opens a new browser window to an instance of a button, not a movie clip. Also, the event, which triggers the opening of a new window, must be "release", not "press" because opening a new window on "press" event will definitely trigger the pop-up blockers.


Note 2: AdformCore can also be used in the Flex 2/Flex 3/Flash Builder 4 by adding it's swc in to the project library and using the following ActionScript 3 code:

var adformCore:AdformCore = new AdformCore(this.stage);

For testing the clickTAG implementation, please use the Test Section.

Implementation of clickTAG in banners for Spotify


on (release) {
    getURL(_root.clickTAG, "_blank");



myButton.addEventListener(MouseEvent.CLICK, function(event: MouseEvent) : void { URLRequest(root.loaderInfo.parameters.clickTAG), "_blank"); 

Note: In the code above, myButton should be replaced with the name of your click-through button instance.