title: How can I get a .swf file to begin play immediately?
body: <p>I have some training videos created using adobe captivate 6.  When I watch the videos they take anywhere from 10 to 60 seconds to load before any playing begins an before anything shows up in the window (the files range from 1MB up to 5MB).  I'm loading them into a jquery-ui dialog box using jquery and simply letting the browser begin the playing when the file is fully downloaded.</p>
  
  <p>The problem I have, is waiting for the .swf to fully download before play begins.  I would like it to begin playing and then continue the download as it plays so the users don't have to wait so long before they see something.  </p>
  
  <p>Video trainings like this are a relatively new area for me, so I don't really know what my options are...if .swf is not the way to go, what are my options with using captivate?  I tried the youtube export that captviate has, but it resized the videos to fit youtube an makes the font too small to read.</p>
  
  <p>When I watch videos on youtube, they begin play immediatly, but continue the download as you watch...I like that concept and wonder if it is possible to pull off something like this with my existing .swf files.</p>
  
  <p>What are the options and possible solutions to this problem?</p>
  
  <p>Thanks in advance for your help.</p>
  
  <p>Here is the call to load the dialog box:</p>
  
  <pre><code>&lt;span onclick="$('#popup_tutorial').dialog('option', 'position', 'top').dialog('option','title','Portfolios - Creating a new portfolio').load('tutorials/acctg_payments.php').dialog('widget').dialog('open');" class="a_link edit_link"&gt;View Tutorial&lt;/span&gt;
  </code></pre>
  
  <p>Here is the #popup_tutorial html:</p>
  
  <pre><code>&lt;div id="popup_tutorial" style="text-align:left"&gt;&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
      $("#popup_tutorial").dialog({
          bgiframe: true,
          autoOpen: false,
          Height: 740,
          width: 900,
          modal: false,
          close: function () {$(this).empty();}
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>and here is the .php page that holds the .swf code and gets placed inside of the #popup_tutorial div:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
  &lt;title&gt;&lt;/title&gt;
  
  &lt;script src="standard.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body   bgcolor="#f5f4f1"&gt;
  
      &lt;div id="CaptivateContent"&gt;&amp;nbsp;
      &lt;/div&gt;
      &lt;script type="text/javascript"&gt;
         var so = new SWFObject("acctg_payments_making.swf", "Captivate", "881", "720", "10", "#CCCCCC");
          so.addParam("quality", "high");
          so.addParam("name", "Captivate");
          so.addParam("id", "Captivate");
          so.addParam("wmode", "window");
          so.addParam("bgcolor","#f5f4f1");
          so.addParam("menu", "false");
          so.addParam("AllowScriptAccess","always");
          so.addVariable("variable1", "value1");
          so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
          so.write("CaptivateContent");
      &lt;/script&gt;
  
  
      &lt;script type="text/javascript"&gt;
          document.getElementById('Captivate').focus();
          document.Captivate.focus();
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>