title: Passing flashvars-style parameters to a loaded SWF
body: <p>I have a Flex 3 app (player v9) which loads a Flash SWF (AS3, also player v9) and needs to dynamically pass it a collection of parameters which are known at run-time. These are parameters that are normally passed via the <code>flashvars</code> element in an HTML page. The embedded movie accesses these parameters via the <code>loaderInfo.parameters</code> object.</p>
  
  <p>I've tried using <code>SWFLoader</code> and <code>Loader</code> classes with no success in param-passing.</p>
  
  <p>Relevant details:</p>
  
  <ul>
  <li>It's a local program, and cannot rely on query string parameters.</li>
  <li>I've mucked with setting <code>loaderInfo.parameters["foo"] = "123"</code> from the embedding code, but the parameter never seems to wind up in the embedded movie.</li>
  <li>I cannot place extra parameter-passing machinery in the embedded movie(s), as they are created by third parties.</li>
  </ul>