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

Dani AI

Generated

Short answer for : the SWF is most likely not receiving the click URL because of (a) a case/name mismatch when passing the variable from HTML to Flash and/or (b) how the SWF is embedded. was right that some browsers need an <embed> (or a proper swfobject embed) to display the file, but that alone won’t fix a wrong variable name or a protocol check that rejects https.

Concrete checklist and fixes

  • Confirm AS version: AS2 expects a timeline/global var (e.g. clickTAG on _root); AS3 reads loaderInfo.parameters. Fix the ActionScript accordingly before changing HTML.
  • Match the variable name exactly (case matters). If the SWF expects clickTAG, the FlashVars key must be clickTAG (not clicktag or clickTag).
  • Prefer FlashVars (or swfobject.embedSWF with a flashvars object) instead of relying on different browser object/embed behaviors. If using swfobject.registerObject only, switch to swfobject.embedSWF when you need to pass variables.
  • Allow both http and https in the validation (the original check that only allowed "http:" will fail on secure pages). Validate with a regex like ^https?:\/\/ and block javascript: schemes.

Example approaches (AS3 + swfobject)

this.myButton.addEventListener(MouseEvent.CLICK, onClick);
function onClick(e:MouseEvent):void {
    var url:String = loaderInfo.parameters.clickTAG || loaderInfo.parameters.clickTag;
    if (url && url.search(/^https?:\/\//i) == 0) {
        navigateToURL(new URLRequest(url), "_blank");
    }
}
var flashvars = { clickTAG: "http://example.com" };
var params = { menu: "false", wmode: "opaque" };
swfobject.embedSWF("lop.swf", "FlashID", "468", "60", "9.0.0", null, flashvars, params);

Debug tips and context

  • Test the SWF directly with a query string (lop.swf?clickTAG=http://example.com) to see if the button opens the URL.
  • Watch for stray spaces or HTML-encoding in the param value — a leading space breaks the URL.
  • Remember Flash reached EOL at the end of 2020 and modern browsers often block SWFs; convert banner creatives to HTML5/Canvas for long-term compatibility.

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.