I have created a banner in flash and add some code that help me track my banner
here is the code I added to swf file

myButton_btn.onRelease = function() { 
    if (clickTAG.substr(0, 5) == "http:") { 
        getURL(clickTAG); 
    } 
};

And now i added that swf file in to html and followed gudeline by adobe but nothing happened plz help

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="468" height="60" align="middle" id="FlashID" title="lop">
  <param name="movie" value="lop.swf?clicktag= http://www.adobe.com" />
  <param name="quality" value="high" />
  <param name="swfversion" value="6.0.65.0" />
  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
  <param name="expressinstall" value="Scripts/expressInstall.swf" />
  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  <!--[if !IE]>-->
  <object data="lop.swf" type="application/x-shockwave-flash" width="468" height="60" align="middle">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="swfversion" value="6.0.65.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>

Adobe guideline url:
http://help.adobe.com/en_US/flash/cs/using/WSd60f23110762d6b883b18f10cb1fe1af6-7b29a.html#WSd60f23110762d6b883b18f10cb1fe1af6-7b25a

I am not a great web developer but from my experience what I would suggest in a scenario like this is reducing the code to the absolute minimum. In this case - you don't need all these parameters. What is enough to display a banner is this:

<object width="468" height="60">
        <param name="movie" value="lop.swf?clicktag= http://www.adobe.com" />
        <embed src="lop.swf?clicktag= http://www.adobe.com" width="468" height="60"/>
 </object>

Also now as I wrote it, I noticed that you are missing the "<embed>" tag in your code. That reason alone is the cause for the banner not showing. So maybe first you can try just adding this line:

<embed src="lop.swf?clicktag= http://www.adobe.com" width="468" height="60"/>

Right after this line:

<param name="swfversion" value="6.0.65.0" />

And if that doesn't help, just try doing what I suggested in the first place. Tell me how it went :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.