1 Reply Latest reply on Jul 9, 2007 7:52 AM by MotionMaker

    question about using flashvars

    oneofhero
      <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>Untitled-1</title>
      <script language="javascript">AC_FL_RunContent = 0;</script>
      <script src="AC_RunActiveContent.js" language="javascript"></script>
      </head>
      <body bgcolor="#ffffff">
      <!--url's used in the movie-->
      <!--text used in the movie-->
      <!-- saved from url=(0013)about:internet -->
      <script language="javascript">
      if (AC_FL_RunContent == 0) {
      alert("This page requires AC_RunActiveContent.js.");
      } else {
      AC_FL_RunContent(
      'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
      'width', '550',
      'height', '400',
      'src', 'Untitled-1',
      'quality', 'high',
      'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
      'align', 'middle',
      'play', 'true',
      'loop', 'true',
      'scale', 'showall',
      'wmode', 'window',
      'devicefont', 'false',
      'id', 'Untitled-1',
      'bgcolor', '#ffffff',
      'name', 'Untitled-1',
      'menu', 'true',
      'allowFullScreen', 'false',
      'allowScriptAccess','sameDomain',
      'movie', "Untitled-1,
      "flashvars",'userid=AA',
      'salign', ''
      ); //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,0,0" width="550" height="400" id="Untitled-2" align="middle">
      <param name="allowScriptAccess" value="always" />
      <param name="FlashVars" value="userid=AA"/>
      <param name="allowFullScreen" value="false" />
      <param name="movie" value="Untitled-1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
      <embed flashvars="userid=AA" src="Untitled-1.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="Untitled-2" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" />
      </object>
      </noscript>
      </body>
      </html>


      var myText:TextField = new TextField();
      myText.width = 350;
      myText.height = 100;
      myText.text="";
      myText.text+="userid="+String(root.loaderInfo.parameters.userid)+" \n ";
      addChild(myText);

      I do not know why it does not work. it will ouput undefined. What is wrong?