clickTAG for actionscript 3.0
If you are looking to get clickTAG to work for actionscript 3.0 in your flash ad, you have come to the right place. Being that I had to put forth more google efforts than normal to find a simple solution, I figured I’d post my findings to make it easier for others.
Actionscript 3.0 clickTAG
var request:URLRequest = new URLRequest(root.loaderInfo.parameters.clickTAG);
myButton.addEventListener(MouseEvent.MOUSE_UP, tracker);
function tracker(event:MouseEvent):void {
navigateToURL(request, “_blank”);
}
And might as well put up Actionscript 2.0 clickTAG code:
on (release) {
if (clickTAG.substr(0,5) == “http:”) {
getURL(clickTAG, target=”_blank”);
}
}
Something to be aware of, the clickTAG reference may have different case. Some clicktag, clickTag, or in my case clickTAG.