title: FlashVars w/o SWFObject doesn't work for pure AS3 project
body: <p>This has been driving me nuts. I've worked with SWFObject in the past which is great. However I have a requirement not to use JavaScript. So when I try to do flashvars examples all over the net, they don't seem to work for me.</p>
  
  <p>Steps to repeat:</p>
  
  <p>1) Create a pure AS3 project using Flex or Flash Builder</p>
  
  <p>2) In the index.html wherever there is a .swf, add a name value pair suffix.
  test.swf?foo=bar</p>
  
  <p>3) In the constructor of the main class Sprite, trace(root.loaderInfo.parameters.foo).</p>
  
  <p>Expected: bar but traces out as undefined</p>
  
  <p>I've tried setTimeout() to evaluate 5 seconds in the future, still doesn't work as if it's not loaded at all.</p>
  
  <pre><code>        &lt;noscript&gt;
          &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="${width}" height="${height}" id="${application}"&gt;
              &lt;param name="movie" value="${swf}.swf?foo=bar" /&gt;
              &lt;param name="quality" value="high" /&gt;
              &lt;param name="bgcolor" value="${bgcolor}" /&gt;
              &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
              &lt;param name="allowFullScreen" value="true" /&gt;
              &lt;!--[if !IE]&gt;--&gt;
              &lt;object type="application/x-shockwave-flash" data="${swf}.swf?foo=bar" width="${width}" height="${height}"&gt;
                  &lt;param name="quality" value="high" /&gt;
                  &lt;param name="bgcolor" value="${bgcolor}" /&gt;
                  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;param name="allowFullScreen" value="true" /&gt;
              &lt;!--&lt;![endif]--&gt;
              &lt;!--[if gte IE 6]&gt;--&gt;
                  &lt;p&gt; 
                      Either scripts and active content are not permitted to run or Adobe Flash Player version
                      ${version_major}.${version_minor}.${version_revision} or greater is not installed.
                  &lt;/p&gt;
              &lt;!--&lt;![endif]--&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;!--[if !IE]&gt;--&gt;
              &lt;/object&gt;
              &lt;!--&lt;![endif]--&gt;
          &lt;/object&gt;
      &lt;/noscript&gt;   
  </code></pre>
  
  <p>AS3</p>
  
  <pre><code>package
  {
  import flash.display.LoaderInfo;
  import flash.display.Sprite;
  
  public class FlashVarsTest extends Sprite
  {
      public function FlashVarsTest()
      {
          var paramsObj:Object =
              LoaderInfo(root.loaderInfo).parameters;
          trace("foo="+paramsObj["foo"]);
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>This doesn't work either:</p>
  
  <pre><code>package
  {
  import flash.display.LoaderInfo;
  import flash.display.Sprite;
  import flash.events.Event;
  
  public class FlashVarsTest extends Sprite
  {
      public function FlashVarsTest()
      {
  
          this.addEventListener(Event.ADDED_TO_STAGE, init)
      }
  
      private function init(event:Event):void
      {
          var paramsObj:Object =
              LoaderInfo(root.loaderInfo).parameters;
          trace("foo="+paramsObj["foo"]);
  
      }
  }
  </code></pre>
  
  <p>}</p>