MODIFYING A SHOCKWAVE (FLASH) CREATIVE

Important Note for NT/2000 PLATFORM USERS, Click Here

Single Click
  • Modifying a Flash banner involves two steps. The first step is to modify the flash file itself in order to track click-throughs. The second step is to modify the HTML file which plays the flash file.

  1. To assign a clickTAG for your advertisement:

    • The Flash File (.fla extension) must first be modified.

    • The clickTAG is the tracking code assigned by the ad serving network to an individual ad. The clickTAG allows the network to register where the ad was displayed when it was clicked on. This click through data is reported to the ad serving servers so advertisers may determine the effectiveness of their campaign.

    • The code below will allow ad serving networks to dynamically assign a clickTAG to their ad.

      Flash MX/Flash 6
      • In this example, a getURL action is being assigned to a button that will navigate the browser to [clickTAG]. The getURL(clickTAG) statement appends the variable data passed in via the OBJECT EMBED tag and navigates the browser to that location. It is the tracking code assigned by the ad serving network, which allows them to register a user's click on that advertisement.

      • The expression box must be checked for the clickTAG variable to work properly. See picture below.

      • In order to have a new browser window open when clicking on the banner, choose "_blank" by the window option in the action window. See picture below.


      Flash MX 2004/Flash 7
      • In this example, a getURL action is being assigned to a button that will navigate the browser to [clickTAG]. The getURL(clickTAG,"_blank") statement appends the variable data passed in via the OBJECT EMBED tag and navigates the browser to that location. It is the tracking code assigned by the ad serving network, which allows them to register a user's click on that advertisement.

      • The url variable, clickTAG should be inserted without "" for the creative to work properly. See picture below.

      • In order to have a new browser window open when clicking on the banner, enter "_blank" for the window variable. See picture below.



    • Upload the gif into the OAS creative portion first and then upload the swf file and finally upload the HTML which makes all the calls.

    • To learn more about modifying flash files, please visit the website at http://www.macromedia.com/resources/richmedia/

  2. Modifying the HTML file:

    • The tag below contains the portion that needs to be modified for the HTML part of shockwave implementation. There is a "before" and "after" part. The changes are in bold in the "after" part.
    • Select the Creative screen and add three creatives.
      • One for the swf. file.The Click URL* can be anything since it is not being used. We usually use __QUERY__ as a place holder. Upload the swf file into OAS and set the "Display this banner" toggle to NO.
      • One for the gif banner ( if there is any), The Click URL* can be anything since it is not being used. Upload the gif banner into OAS and set the "Display this banner" toggle to NO.
      • One for the html code. Upload the html file into OAS and set the "Display this banner" toggle to YES. Make sure that the Click URL* field shows __QUERY__ and that the media type is text/html.
    • Make sure you replace http://www.click-through.com with the exact click url for the creative.
    • Make sure you replace ad_banner_example.swf with the exact name of the swf file.

  3. Use the Code Generator below to create the flash code to be uploaded into OAS.

Before (UnModified)
<SCRIPT LANGUAGE=JavaScript>
<!--
var plugin = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
if (navigator.plugins && navigator.plugins["Shockwave Flash"])plugin = 1;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
document.write('</SCRIPT\> \n');
}
if ( plugin )
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0" ');
document.write(' ID=ad_banner_example WIDTH=468 HEIGHT=60>');
document.write(' <PARAM NAME=movie VALUE="ad_banner_example.swf"><PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=white> ');
document.write(' <EMBED src="ad_banner_example.swf" menu=false quality=high bgcolor=WHITE ');
document.write(' swLiveConnect=FALSE WIDTH=468 HEIGHT=60');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
}
else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0))
{
document.write('<a href="http://www.clickthrough.com"><IMG SRC="ad_banner_example.gif" WIDTH=468 HEIGHT=60 BORDER=0></a>');
}
//-->
</SCRIPT>
<NOEMBED>
<a href="http://www.clickthrough.com"><IMG SRC="ad_banner_example.gif" WIDTH=468 HEIGHT=60 BORDER=0></a>
</NOEMBED>
<NOSCRIPT>
<a href="http://www.clickthrough.com"><IMG SRC="ad_banner_example.gif" WIDTH=468 HEIGHT=60 BORDER=0></a>
</NOSCRIPT>



After (Modified)
<SCRIPT LANGUAGE=JavaScript>
<!--
var plugin = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
if (navigator.plugins && navigator.plugins["Shockwave Flash"])plugin = 1;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
document.write('</SCRIPT\> \n');
}
if ( plugin )
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0" ');
document.write(' ID=ad_banner_example WIDTH=468 HEIGHT=60>');
document.write(' <PARAM NAME=movie VALUE="http://adserver.realmedia.com/RealMedia/ads/Creatives/%%CAMP%%/ad_banner_example.swf
?clickTAG=http://adserver.realmedia.com/RealMedia/ads/click_lx.ads/%%PAGE%%/%%RAND%%/%%POS%%/%%CAMP%%/%%IMAGE%%/%%USER%%?http://www.click-through.com
"><PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=white> ');
document.write(' <EMBED src="http://adserver.realmedia.com/RealMedia/ads/Creatives/%%CAMP%%/ad_banner_example.swf
?clickTAG=http://adserver.realmedia.com/RealMedia/ads/click_lx.ads/%%PAGE%%/%%RAND%%/%%POS%%/%%CAMP%%/%%IMAGE%%/%%USER%%?http://www.click-through.com
" menu=false quality=high bgcolor=WHITE ');
document.write(' swLiveConnect=FALSE WIDTH=468 HEIGHT=60');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
}
else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0))
{
document.write('<a href="http://adserver.realmedia.com/RealMedia/ads/click_lx.ads/%%PAGE%%/%%RAND%%/%%POS%%/%%CAMP%%/%%IMAGE%%/%%USER%%?http://www.clickthrough.com"><IMG SRC="http://adserver.realmedia.com/RealMedia/ads/Creatives/%%CAMP%%/ad_banner_example.gif" WIDTH=468 HEIGHT=60 BORDER=0></a>');
}
//-->
</SCRIPT>
<NOEMBED>
<a href="http://adserver.realmedia.com/RealMedia/ads/click_lx.ads/%%PAGE%%/%%RAND%%/%%POS%%/%%CAMP%%/%%IMAGE%%/%%USER%%?http://www.clickthrough.com"><IMG SRC="http://adserver.realmedia.com/RealMedia/ads/Creatives/%%CAMP%%/ad_banner_example.gif" WIDTH=468 HEIGHT=60 BORDER=0></a>
</NOEMBED>
<NOSCRIPT>
<a href="http://adserver.realmedia.com/RealMedia/ads/click_lx.ads/%%PAGE%%/%%RAND%%/%%POS%%/%%CAMP%%/%%IMAGE%%/%%USER%%?http://www.clickthrough.com"><IMG SRC="http://adserver.realmedia.com/RealMedia/ads/Creatives/%%CAMP%%/ad_banner_example.gif" WIDTH=468 HEIGHT=60 BORDER=0></a>
</NOSCRIPT>

OAS Ad Click-Through (Enter in Click-Through field in OAS Interface)
__QUERY__



Shockwave (Flash) Single Click Code Generator

Ad Server Platform (The backend server where OAS is installed. If you are unsure, please contact your server administrator):

Please Enter Your Adserver (Fully Qualified Domain Name):
*If you are an OAS Network customer then your adserver will be network.realmedia.com
Please insert the name of the Flash file name including .swf at the end:
*For example: market.swf

Please insert the click through url for this ad:

Width of Banner:
Height of Banner:

Enter name of the back up gif including .gif at the end:
*For example: marketimage.gif
See Instructions below after creating ad tag.


Click url to be copied and pasted into OAS:      

Important:
  1. Copy the code above the click url statement and paste it into a notepad file. Save it as an HTML file and then upload it into OAS into the creative of the campaign.
  2. Copy the click url and paste it into OAS in the Click Url field under the creative part.