Copy link to clipboard
Copied
suppose we are using clicktag
on (release) { getURL(_root.clickTAG, '_blank'); }
we are not using any target website . so where it is going ? is that for dynamic destination . what is the magic of clicktag. ? it seems to be strange
Copy link to clipboard
Copied
that's as2 and your posting on an as3 forum.
so, the first thing you need to do is find out if you're supposed to be using as2 or as3.
Copy link to clipboard
Copied
As3 clicktag is not using any target website as well. So what is the difference of all the banners. Everybody is using same clicktag . No URL . Strange .
I think the landing page linking is done in adwords or some providers when sign up
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.net.navigateToURL;
click_btn.addEventListener(MouseEvent.MOUSE_UP, onClick);
function onClick(e:MouseEvent):void {
var click_url:String = root.loaderInfo.parameters.clickTAG;
if(click_url) {
navigateToURL(new URLRequest(click_url), '_blank');
}
}
Copy link to clipboard
Copied
that's as3 code and it should work when your swf is embedded in a page that contains a definition for clickTAG.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now