How to insert a Click Tag (clickTag) into your Flash Banner for the DART Ad Network

By grossiweb9/14/2015
articles

First of all be conscious of what version of Flash you have. Many tutorials skip this step and because each version of Flash may have new Action Script commands, older commands may no longer be viable. For example some scripts that work in Action Script 2.0 will produce errors and not function in Action Script 3.0.

The following Tutorial is written for Action Script 2.0. You can set your Action Script in the Action Script Panel.

You can set your Action Script Publish Settings by going to File > Publish Settings or Ctrl + Shift + F12 & Then select your Action Script from the drop down list

Adding clicktag in flash

You can also go to File > Publish Settings and under script select the appropriate script ActionScript 2.0

how to add a clicktag in flash

Creating the ClickTag

  1. Create a new layer (Insert > Timeline > Layer) above all other layers, name it “click” – and select the first keyframe in that layer.
  2. Using the Rectangle tool, draw a rectangle encompassing the entire area of the ad.
  3. Convert the rectangle to a button.
    [using the Selection tool, right-click and select Convert to Symbol. Type a name [“clicktag”] for the symbol and select the Button behavior. Click “ok”.]
  4. Double-click the rectangle [go into symbol editing mode] to edit it, and drag the Up keyframe to the Hitkeyframe.
  5. Go back to the main timeline and select the button on frame one of the “click” layer. Open the Actions panel [If the Actions panel is not open, choose Windows > Actions (F9)].
  6. Go back to the main timeline and select the button on frame one of the “click” layer. Open the Actions panel [If the Actions panel is not open, choose Windows > Actions (F9)].

    Note: Make sure “Actions – Button” displays at the top of the panel.

  7. The code below will allow ad serving networks to dynamically assign a clickTAG to their ad. Copy and paste the following code verbatim into the ActionScript field:

Flash MX/Flash 6:
getURL(clickTAG) & choose “_blank” by the window option in the action window

Flash MX 2004/Flash 7:
getURL(clickTAG,”_blank”)

Flash < 8 ActionScript 2.0:

on (release) {
getURL (clickTag, “_blank”);
}

Flash 9 ActionScript 3.0:

on (release) {
getURL (_level0.clickTag, “_blank”);
}

Publishing the Banner

  • Click on the File menu and select Export > Export Movie… as shown in the screenshot below.

Publishing flash banner with click tag

  • Make sure your publishing settings appear as shown in the screenshot below. In particular the minimumVersion of the Flash player to require should match the one of the ActionScript code you chose to assign to the button. Most of the other settings can be changed at your discretion, but enabling compression is generally recommended.

how to add a clicktag in flash

  • At this point, you are ready to set up your published SWF file as a Flash banner in your ad server. Congratulations!

Troubleshooting

Case Sensitivity

Did you export the SWF file for your banner for Flash version 8 or 9? These versions of Flash treat the clickTAGparameter name case sensitively. If you did not copy and paste the ActionScript code, verify that all occurrences of the parameter name are spelled exactly as clickTAG and if that does not work try a different capitalization. The standard is to use clickTAG, but your ad server might use clickTag, ClickTAG, ClickTag or some other variation. Make sure to change every occurrence of the parameter name in the ActionScript code though as they must all match exactly to work properly!

Embedded URLs

Another common mistake is to replace “http:” in the ActionScript code with a link. The purpose of that code is to verify the protocol of your link is HTTP. That is necessary to prevent your banner from being utilized in cross-site scripting attacks, so you definitely don’t want to alter or remove that! Where your link actually goes is in your ad server, which will dynamically inject the link into the banner at the time of serving. No link(s) should ever be embedded in the Flash banner directly.

Pop-up Blocking

Did you export the SWF file for your banner for Flash version 4, 5, 6, or 7? Internet Explorer versions 7 and 8 when used with Flash plugin version 10 do not permit SWF files exported for those older versions to use _blank for the target frame. They are considered to be pop-up windows and blocked. The only workarounds are to use _top for the target frame or to export the SWF file for FLash 8 or 9.

We focus on aspects that matter to your businessThat's what makes our clients happy

Rhia

ATHENS LANGUAGE SCHOOLHOUSE

I am fortunate to have found Grossi Web to construct my website and help me realize my marketing strategy and look! Grossi Web listened to my ideas and created the perfect end result. The process was made easy for me allowing me creative freedom without stress. Grossi Web worked fast, producing a professional and stunning website. I am so pleased with Grossi Web!

Thay

HUMES MCCOY AVIATION

Thanks to the Talent and Professionalism of GrossiWeb, I have turned a dream into a successful aviation company. I continuously receive compliments on the corporate site and AirExpress® brand. GrossiWeb developed a highly targeted marketing campaign that has resulted in international exposure and attaining clients who were previously unreachable!

Bob

DORFMAN CAPITAL

I had been courting a high profile business prospect, but after a few months my prospect was becoming increasingly distant. One morning after I had made some follow up calls, my prospect called me right back stating he had seen a news story about my company on Yahoo news. This is the type of instant gratification and credibility I have experienced working with Grossi Web.

Rhia

ATHENS LANGUAGE SCHOOLHOUSE

I am fortunate to have found Grossi Web to construct my website and help me realize my marketing strategy and look! Grossi Web listened to my ideas and created the perfect end result. The process was made easy for me allowing me creative freedom without stress. Grossi Web worked fast, producing a professional and stunning website. I am so pleased with Grossi Web!

Thay

HUMES MCCOY AVIATION

Thanks to the Talent and Professionalism of GrossiWeb, I have turned a dream into a successful aviation company. I continuously receive compliments on the corporate site and AirExpress® brand. GrossiWeb developed a highly targeted marketing campaign that has resulted in international exposure and attaining clients who were previously unreachable!

Bob

DORFMAN CAPITAL

I had been courting a high profile business prospect, but after a few months my prospect was becoming increasingly distant. One morning after I had made some follow up calls, my prospect called me right back stating he had seen a news story about my company on Yahoo news. This is the type of instant gratification and credibility I have experienced working with Grossi Web.

What happens after you contact us?

15 minutes consultation

We will schedule a quick 15-minute call with you to understand what you need to unlock the full potential of your business.

Project Proposal

After we got every output from you, we will prepare a proposal for you. If you agree with our pricing and timeline, we are all set to take off.