1 Reply Latest reply on Jan 29, 2010 8:28 AM by Ned Murphy

    ASP help - Some flash based code being removed when previewed in browser

    matthew stuart Level 2

      I have got this code in DW:

       

      AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','120','height','360','src','../._dataimages/_rightbanner/<%=(rs_bannerright.Fields.Item("fld_image").Value)%>','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','../._dataimages/_rightbanner/<%=(rs_bannerright.Fields.Item("fld_image").Value)%>' ); //end AC code
      </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="120" height="360">
              <param name="movie" value="../._dataimages/_rightbanner/<%=(rs_bannerright.Fields.Item("fld_image").Value)%>. swf">
              <param name="quality" value="high">
              <embed src="../._dataimages/_rightbanner/<%=(rs_bannerright.Fields.Item("fld_image").Value)%>.sw f" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="360"></embed>

       

      You can see that I have placed some ASP code in there to call on info (<%=(rs_bannerright.Fields.Item("fld_image").Value)%>), but when I view it in a browser the code loads in part as I expect... that is the dynamic content is written to one part, but disappears from another like so:

       

      AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','120','height','360','src','../._dataimages/_rightbanner/test2/Untitled-1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','../._dataimages/_rightbanner/test2/Untitled-1' ); //end AC code
      </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
      http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="120" height="360">
              <param name="movie" value="../._dataimages/_rightbanner/.swf">
              <param name="quality" value="high">
              <embed src="../._dataimages/_rightbanner/.swf" quality="high" pluginspage="
      http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="360"></embed>

       

       

      You can see that the code misses out the dynamic content before the .swf in both the param name and embed src... does anybody know why?

       

      Thanks

       

      Mat

       

       

        • 1. Re: ASP help - Some flash based code being removed when previewed in browser
          Ned Murphy Adobe Community Professional & MVP

          I believe the problem is due to the first case involves single quotes ( ' ), while the second case involves doublequotes ( " ), wherein your ASP code also uses doublequotes within it, which is causing the line to be broken when processed in the second case.

           

          First case:

          '../._dataimages/_rightbanner/<%=(rs_bannerright.Fields.Item("fld_image").Value)%>'

           

          Second case:

          value="../._dataimages/_rightbanner/<%=(rs_bannerright.Fields.Item("fld_image") .Value)%>.swf">

           

          I am not very familar with ASP but can offer what I would have done (tried) with PHP for the second case... breaking it up into separate strings and using the concatenation operation ( . )...

           

          value="../._dataimages/_rightbanner/".<%=(rs_bannerright.Fields.Item("fld_image") .Value)%>.".swf">