title: How to pass variable from MySQL to SWF
body: <p>I am trying to pass an ssoTicket from MySQL through a webpage and into a SWF file.</p>
  
  <p>The bellow code results in null in the server log, but when I set an ssoTicket that matches, everything works fine.  </p>
  
  <p>There seems to be relatively little information online.</p>
  
  <p>I have printed sso_ticket and it does echo the correct string.</p>
  
  <p><strong>Page</strong></p>
  
  <pre><code>&lt;?php
  include("global.php");
  if($islogged) { ?&gt;
  &lt;?xml version=”1.0″?&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;?php echo $self['sso_ticket']; ?&gt;&lt;/title&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;meta name="language" content="en" /&gt;
      &lt;meta name="description" content="" /&gt;
      &lt;meta name="keywords" content="" /&gt;
  
      &lt;script src="js/swfobject.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          var flashvars = {
              sso: "&lt;?php echo $self['sso_ticket']; ?&gt;" 
          };
          var params = {
              menu: "false",
              scale: "noScale",
              allowFullscreen: "true",
              allowScriptAccess: "always",
              bgcolor: "#FFFFFF"
          };
          var attributes = {
              id:"E4"
          };
          swfobject.embedSWF("ac.swf", "altContent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
      &lt;/script&gt;
      &lt;style&gt;
          html, body { height:100%; }
          body { margin:0; }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id="altContent"&gt;
          &lt;p&gt;&lt;a href="http://www.adobe.com/go/getflashplayer"&gt;&lt;img 
              src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" 
              alt="Get Adobe Flash player" /&gt;&lt;/a&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;?php
  }
  ?&gt;
  </code></pre>
  
  <p><strong>SWF</strong></p>
  
  <pre><code>var ssoTicket:String = LoaderInfo(this.root.loaderInfo).parameters["sso"];
  </code></pre>
  
  <p><strong>SWF With pre-set ssoTicket</strong></p>
  
  <pre><code>var ssoTicket:String = LoaderInfo(this.root.loaderInfo).parameters["sso"];          
  if (ssoTicket == "" || ssoTicket == null) ssoTicket = "73a448e7e4a3314d2d1a3f33588df9b8";
  </code></pre>