1 Reply Latest reply on Sep 12, 2006 2:03 PM by Keith_@_Viewmark

    Using query strings to pass variables...

    Keith_@_Viewmark
      I'm trying to use the query string method to pass some variables into a SWF, but I can't seem to get it to work. All of the documentation I've seen references the object/embed method for displaying the SWF, but I'm using Dreamweaver's AC_RunActiveContent.js method to display the SWF. Would this cause a problem for the query string?

      Here's what I'm trying in the HTML that houses it:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns=" http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>Untitled Document</title>
      <link href="../bk.css" rel="stylesheet" type="text/css" />
      <script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
      </head>

      <body>
      <script type="text/javascript">
      AC_FL_RunContent( 'codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','301','height','240','src','videoplayer','quality','high','pluginspage','http://www.ma cromedia.com/go/getflashplayer','movie','videoplayer' ); //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=7,0,19,0" width="301" height="240">
      <param name="movie" value="videoplayer.swf?vid=dbc2006" />
      <param name="quality" value="high" />
      <embed src="videoplayer.swf?vid=dbc2006" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="301" height="240"></embed>
      </object></noscript>
      </body>
      </html>
        • 1. Re: Using query strings to pass variables...
          Keith_@_Viewmark Level 1
          I've been doing a little research... not being a programmer, I'm a little out to lunch on this stuff. I now realize that what I put in the HTML page is meaningless, unless the viewer's browser won't use JavaScript.

          I now know that I need to define my variables in the HTML page, and have the .js file recongnize and use them.

          That's where my lack of knowledge really gets in the way. :) Does anyone have any thoughts on how to modify the .js file to put my "?vid=dbc2006" into the string?

          Thanks!