Creatives :

ActionScript 2.0 / ActionScript 3.0

The Flash banners that will be displayed in smartadserver, should relate to this turorial in order for it's link to be editable for modification without having to edit the flash banner itself.

Step 1: You need to create a button symbol: Using the Rectangle Tool, draw a rectangle that covers the whole scene. After selecting the rectangle you just created press "F8" and select Button type. Then double click on the rectangle to set the button to "hit" as shown below.

Step 2:Insert the following code in the action window: Select the button created previously and press "F9".

//IAB Canada Universal ClickTAG V1.0 Developed for IAB Canada by Ben Cormier, Netprophets.com
on (release){
function cFcTg(t){
     return (t.substr(0, 7) == 'http://' || t.substr(0, 8) == 'https://');
}

var fcTg = ''; var fcTt = '_blank';
var cTgM = 'clicktag'; var cTtM = 'clicktarget';

for (prop in this) {
     var p = prop.toLowerCase();
     if (p == cTgM && cFcTg(this[prop])) fcTg = this[prop]; if (p == cTtM) fcTt = this[prop];
}

if(fcTg == '' || fcTt == '_blank')
     for (prop in _root) {
          var p = prop.toLowerCase();
          if (p == cTgM && cFcTg(_root[prop]) && fcTg == '') fcTg = _root[prop];
          if (p == cTtM && fcTt == '_blank') fcTt = _root[prop];
     }

if(fcTg == '' || fcTt == '_blank')
     for (prop in _level0) {
          var p = prop.toLowerCase();
          if (p == cTgM && cFcTg(_level0[prop]) && fcTg == '') fcTg = _level0[prop];
          if (p == cTtM && fcTt == '_blank') fcTt = _level0[prop];
     }

if (cFcTg(fcTg)) getURL(fcTg, fcTt);
else getURL("http://noclicktagfound", fcTt);
}


NOTE:It's important that you use the following code as is. (clickTAG, "_blank") and not a regular link (http://www...)

The Action window should look like this:

The clicktag variable can be modified and if there's more than one URL, you can create other buttons with the same method and modify the value of the variable but it's important to tell it to the operators.

coins ronds