3 Replies Latest reply on Feb 23, 2007 10:15 PM by kglad

    Flash vars


      I need to pass a var into a flash movie and depending on the var being "1", "2", "3" etc.. The movie will goto the frame the var has specified.

      I load my flash movie using an external.js file shown below.

      Because on every page I need var "page" to be diffrent I am trying to use "num" instead of having mulitple <embed>/<object> tags.

      I'd like to do something like this in the html page:

      <script type="text/javascript">mymovie ('2' );</script>

      Heres the external.js with what im trying to acheive (but can't get the syntax right):

      function mymovie (num )
      document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="566" height="166" />\n');
      document.write('<param name="movie" value="nav.swf?page=' [num ]' " />\n');
      document.write('<param name="quality" value="high" />\n');
      document.write('<param name="menu" value="false" />\n');
      document.write('<embed src="nav.swf?page=' [num ]' " quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="566" height="166" menu="false" />\n');