Or you could have your own swf that loads the ad swf into an internal empty movieclip. Your swf would take parameters for the tracking url from flashvars in the embedding html, and use them on an invisible button layer at the top level within the swf.
If you pass via flashvars the variable my_url and my_swf:
Code:
//incoming variables via flash vars: my_swf, my_url
//create an empty movieclip and load external swf
this.createEmptyMovieClip("loader_mc",1000);
loader_mc._lockroot = true;
loader_mc.loadMovie(my_swf);
//overlay a button
this.createEmptyMovieClip("click_mc",2000);
click_mc._alpha=0;
click_mc.beginFill(0xFF0000);
click_mc.moveTo(0, 0);
click_mc.lineTo(Stage.width, 0);
click_mc.lineTo(Stage.width, Stage.height);
click_mc.lineTo(0, Stage.height);
click_mc.lineTo(0, 0);
click_mc.endFill();
//add a click handler for the button
click_mc.onRelease=function(){
getURL(my_url,"_self");
}
Bookmarks