Usage Note 53537: Using the swfobject.js method for serving Flash creatives
A new means of serving Flash ads is now available which is somewhat simpler. This method uses a predefined file swfoject.js which is called in the template file served as the creative.
There are 3 components required for this Flash adserving method:
1. A template file which calls the swfobject.js file:
<div id="adContent%%FCID%%">
<a href="%%CLICKURL%%" target="_blank"><img src="%%ALTIMAGE%%" alt="%%ALTTEXT%%" width="%%WIDTH%%" height="%%HEIGHT%%" border="0"/></a>
</div>
<script type="text/javascript">
function renderSwf()
{
var flashvars = null;
var params = {wmode:"transparent",allowScriptAccess:"always"};
var attributes = null;
swfobject.embedSWF("%%MEDIA%%?clickTag=%%CLICKURL%%&clickTAG=%%CLICKURL%%",
"adContent%%FCID%%",
"%%WIDTH%%",
"%%HEIGHT%%",
"%%X_MINIMUM_VERSION%%",
"false",
flashvars,
params,
attributes);
}
</script>
<script type="text/javascript" src="http://content.aimatch.com/swfobject.js" onreadystatechange="if (this.readyState == 'complete') renderSwf();"></script>
<script type="text/javascript">
if (navigator.userAgent.indexOf('MSIE') == -1)
renderSwf();
</script>
|
Note that the token %%X_MINIMUM_VERSION%% used here is a custom token that must be created when creating the Flash template in the UX.
2. The swfobject.js file. This can be referenced from the content.aimatch.com domain as shown above or can be downloaded from http://code.google.com/p/swfobject/ in the event the user wants to host the file elsewhere.
3. The Flash SWF file should be compiled with the following action-script code for the overlay button:
on (release)
{
if (clickTAG.substr(0,5) == "http:")
{
getURL(_root.clickTAG, "_blank");
}
}
|
Operating System and Release Information
| SAS System | SAS Intelligent Advertising for Publishers | N/A | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Using the swfobject.js method for serving Flash creatives.
| Date Modified: | 2014-07-31 15:31:05 |
| Date Created: | 2014-07-14 13:47:05 |