0 Replies Latest reply on Apr 14, 2007 8:46 AM by Federated Films

    Can't call a JavaScript function

    Federated Films Level 1
      Using IE7 and Flash 8 I am trying to just call a JavaScript function called launchCoverFlash(). I have tried all 3 methods, the newer ExternalInterface.call, the older fscommand and even getURL and none of them call the function. Any ideas where I might be going wrong? And yes JavaScript is enabled on my browser. The HTML of the page is below.

      TIA

      Kevin


      <script language="JavaScript" type="text/javascript">
      function launchCoverFlash(name) {
      alert(">> Hello " + name + ".");
      return ">> Hi Flash.";
      }
      </script>

      <div class="hideFlash">
      <div class="cntMainImage">
      <object class="banner" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="574" HEIGHT="218" id="nav-u_scoop1-OPT" ALIGN="" VIEWASTEXT>
      <param NAME=movie VALUE="coverflash/nav-u_scoop1-OPT.swf">
      <param NAME="FlashVars" VALUE="coverflashXML=coverflash/data_scoop.xml&overlayXML=coverflash/data_coverflash.xml& overlaySWF=coverflash/coverflash.swf&link=http%3A%2F%2Fwww.mydomain.co.uk%2Fview%2FShowArt icle.action%3Farticle%3D1172517854547%26site%3Dodw_en_GB">
      <param NAME=quality VALUE=best>
      <param NAME=bgcolor VALUE=#FFFFFF>
      <param name=wmode value=transparent>

      <embed src="coverflash/nav-u_scoop1-OPT.swf?coverflashXML=coverflash/data_scoop.xml&overlayXML=c overflash/data_coverflash.xml&overlaySWF=coverflash/coverflash.swf&link=http%3A%2F%2Fwww.m ydomain.co.uk%2Fview%2FShowArticle.action%3Farticle%3D1172517854547%26site%3Dodw_en_GB" quality=best bgcolor=#FFFFFF WIDTH="574" HEIGHT="218" NAME="nav-u_scoop1-OPT" wmode=transparent ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE=" http://www.macromedia.com/go/getflashplayer" swLiveConnect="true"></embed>
      </object>
      </div>
      </div>