on (release) { if (clickTAG.substr(0,4) == "http") { getURL(clickTAG); } }sometimes this doesn't work and the target location has to be opened in a new tab/window. Use this modification:
on (release) { if (clickTAG.substr(0,4) == "http") { getURL(clickTAG, '_blank'); } }
NOTE: If the click tag in the flash banner's source file (.fla) is missing, then it won't be clickable at all.
In some cases adding allowscriptaccess="always" into generated flash banner code also helps.
Also there is an option to add this allowscriptaccess="always" automatically to all flash banners in the future. All you need to do is go to configuration> Banners & Links Formats> Flash banner format and add this code into the template:
<object width="{$width}" height="{$height}">
<param name="movie" value="{$flashurl}?clickTAG={$targeturl_encoded}">
<param name="loop" value="{$loop}"/>
<param name="menu" value="false"/>
<param name="quality" value="medium"/>
<param name="wmode" value="{$wmode}"/>
<embed src="{$flashurl}?clickTAG={$targeturl_encoded}" width="{$width}" height="{$height}" loop="{$loop}" menu="false" swLiveConnect="FALSE" wmode="{$wmode}" allowscriptaccess="always"></embed>
</object>
{$impression_track}If you still have issues with your flash banner ( e.g. it is clickable, but it redirects to the wrong URL, etc. ) then you should check the implementation of ClickTag in your flash file with your flash designer.
Here is a designer's guide on creating flash banners with Tracking Capabilities:
Designer's Guide: Building Macromedia Flash Banners with Tracking Capabilities
Regarding Action Script 3, here is an example code that worked out for our customer Tristan Paradise:
Regarding Action Script 3, here is an example code that worked out for our customer Tristan Paradise:
THEBUTTON.addEventListener( MouseEvent.CLICK, function():void { if (root.loaderInfo.parameters.clickTAG.substr(0,4) == "http") { navigateToURL( new URLRequest(root.loaderInfo.parameters.clickTAG), root.loaderInfo.parameters.TargetAS ); } } );
"THEBUTTON" is the name of your instance of button.
NOTE: If you set in PAP/PAN at Configuration > Tracking settings > Affiliate linking method the "DirectLink Style (no URL parameters)" linking method OR in the campaign to which the particular banner belongs you set the linking method to "DirectLink Style (no URL parameters)", then ofcourse no URL parameters will be attached by PAP/PAN to the particular banner when the affiliate gets the 'banner code' in the affiliate panel.