Google click tag

//The Actionscript2 Part

on (release) {

getURL(clickTAG, "_blank");
}

//The Actionscript3 Version (This does not work for google, use the Actionscript2 version above)

var paramList:Object = this.root.loaderInfo.parameters;

buttonOverlay.addEventListener(MouseEvent.CLICK, openURL);

function openURL(evtObj:MouseEvent):void {
var request:URLRequest = new URLRequest(paramList["clickTAG"]);
navigateToURL(request, "_blank");
}

//The HTML part

<object type="application/x-shockwave-flash" data="http://url_of_the_banner.com/swf/banner1.swf?clickTAG=http://the_landing_page.com" width="728" height="90">
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="scripts/expressInstall.swf" />
<param name="movie" value="http://url_of_the_banner.com/swf/banner1.swf?clickTAG=http://the_landing_page.com" />
</object>

2 Comments

You must be logged in to post a comment.


  1. No idea, I have not done any click tag work since this snippet was posted. Check out Google help on the subject, I think that's where I figured it out in the first place. Good Luck!


  2. What if I have 2 clicktags in one ad, for example

    clicktag1 and clicktag2

    how do I create a html for that.

    Thanks