title: How to check if a swf is loaded using JavaScript with swfobject?
body: <p>I have the following swf:</p>
  
  <pre><code>    &lt;head&gt;
      # load js
      &lt;script&gt;
      function graph() {
       swfobject.embedSWF(
       "open-flash-chart.swf", "chart", "400", "180", "9.0.0", "expressInstall.swf",
       {"data-file":"{% url monitor-graph %}"});
          };
      &lt;/script&gt;&lt;/head&gt;
  
  &lt;div id="chart"&gt; &lt;/div&gt;
  &lt;script&gt;
  graph();
  &lt;/script&gt;
  </code></pre>
  
  <p>I would like to call the graph function only if the swf has not been loaded yet, is there a way to do this? Thanks.</p>