Follow

Why is my Flash creative not counting clicks?

Answer:

Most likely the clickTAG encoded in the .swf file is not made according to our Flash specifications.

If, however, the clickTAG is not done according to our Flash Specifications you can adapt Cxense Display yourself.


All you have to do is simply to download a Flash Decompiler. We recommend Flash Decompiler Trillix. It's free and easy to use.

A flash decompiler is a small program which enables you to see the coding which has been put into the .swf file without altering the content of the .swf file.

 

 

Instructions

Once you download the decompiler simply open the .swf file using the flash decompiler. Depending on whether the .swf file is coded with ActionsScript 2 or ActionsScript 3 you will have to take different steps.

 

Adapting the clickTAG with an ActionScript 2 .swf file

The decompiler splits the coding into different sections which can be opened and collapsed by using the +/- signs. If the .swf is coded using ActionScript 2 is should have a section called Button with a Button included in it called Button followed by a number, e.g. Button 2, Button 3, etc.

The button is not too important but the important thing is that it exists. What on the other hand is important is that the file has a Script.

Under the Script section you should see a Script called Button “Number”. It is very important that the name of this script is given the same name as the Button.

It's here in the Script you can find our clickTAG. In an Actionscript 2 the content of the clickTAG should be:

on(release) {
     getURL(clickTAG, "_blank");
      }

It is very important that this the clickTAG is written exactly like this and please note that the clickTAG is case sensitive meaning that it will not work properly if it e.g. is made like this: getURL(Clicktag, “_blank.

If the problem is a simple misspelling of the word ‘clickTAG’ you can easily work your way around it in Cxense Display.

If e.g. the clickTAG is spelled ClickTag all you have to do is change the clickTAG so it is spelled accordingly to the clickTAG in the .swf file. This is done in on the page where you upload the flash creative and insert the Click URL.

To the left of the box where the Click URL is inserted you can manually adjust the clickTAG so it matches the clickTAG in the .swf file so if e.g. the clickTAG in the .swf file is spelled like this clicktag all you will have to is write clicktag in the first box instead of the default clickTAG.

If however the clickTAG looks like this: on(release) { getURL(http://www.mywebsite.com, “_blank”); }

you are not able to adapt Cxense Display to it and therefore you will have to contact the customer from whom you received the .swf file and ask them to create a new .swf file were the clickTAG is made according to our Flash specifications.

 

Adapting the clickTAG with an ActionScript 3 .swf file

In an ActionScript 3 .swf file you don't use Buttons – but Frames.

Begin with searching for the clickTAG to see how it is coded in the .swf file.

Finding the clickTAG can be quite tricky in ActionScript 3. The easiest way is to simply use the search function in the Flash Decompiler and search for the word clickTAG. The clickTAG in an ActionScript 3 is slightly different than in an ActionScript 2.

According to our Flash specification it should look like this:

   var clickTAG:String = String(root.loaderInfo.parameters.clickTAG);
         klik.addEventListener(MouseEvent.CLICK,activateclickTag);
         function activateclickTag(e:Event):void {
         var request:URLRequest = new URLRequest(clickTAG);
         navigateToURL(request,"_blank");
         }

Like in an ActionScript 2 file you can adjust the clickTAG in Cxense Display – if clickTAG is misspelled (e.g. clicktag).

Again, like when working with an ActionScript 2 file you can adjust this when adding the creative. Just edit the way your clickTAG is spelled so it matches the way it is spelled in the .swf file. This is done in the box to the left of where you insert the Click URL.

If the spelling of clickTAG isn't the problem – you can't correct it in Cxense Display. Instead, contact the customer from who you received the creative and ask them to create a new .swf with the correct clickTAG

Have more questions? Submit a request

Comments

Powered by Zendesk