3 Replies Latest reply on Jun 4, 2009 10:31 AM by loadVariables

    [newbie] Flash video not working in asp.net

    loadVariables Level 1



      Flash CS4


      I have created a Flsh video which when previewing inside Flash CS4 works great, but nothing is displayed on the webpage.


      This is the markup I put inside my .aspx page:

      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="545" height="440" id="test" align="middle">





      <param name="allowScriptAccess" value="sameDomain" />





      <param name="allowFullScreen" value="false" />





      <param name="movie" value="Flash/test.swf" />





      <param name="quality" value="high" />





      <param name="bgcolor" value="#ffffff" />






      <embed src="Flash/test.swf" quality="high" bgcolor="#ffffff" width="545" height="440" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />








      The html generated by Flash CS4 also contain this code which i didn't add to my .aspx page, I didn't use the code below as it tryes to install an ActiveX object, and I cannot make the page so that users must have an ActiveX object in order for them to see the video. So clearly I'm missing something here, I want to run the video without using any activeX objects :

      <script language="JavaScript" type="text/javascript">
      // Flash Player Version Detection
      // Detect Client Browser type
      // Copyright 2005-2008 Adobe Systems Incorporated.  All rights reserved.
      var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
      var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
      var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
      function ControlVersion()
      var version;
      var axo;
      var e;
      // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
      try {
        // version will be set for 7.X or greater players
        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
        version = axo.GetVariable("$version");


      Any ideas?