title: Wrap a Flash Button Click as Click event of HTML Button/Div click event
body: <p>I have a flash button. I want to click that flash button from other HTML Button. That means flash click must trigger as the click of an HTML Button/Div or any other HTML object click event. So I can Call $(#).get(0).click(); and I can embed that flash click anywhere with HTML JS. Here is my sample code to understand the situation. </p>
  
  <p>Note: </p>
  
  <ul>
  <li>I cant modify the flash.</li>
  <li>Must done at the client side only.</li>
  <li>I want to use flash only, no other HTML5 etc. solutions.</li>
  </ul>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="test" onclick="alert("Hello");"&gt;
   &lt;object type="application/x-shockwave-flash" data="upload.swf" width="320" height="240" id="upload" style="visibility: visible;"&gt;
    &lt;param name="menu" value="false"&gt;
    &lt;param name="wmode" value="direct"&gt;
    &lt;param name="allowScriptAccess" value="always"&gt;
    &lt;param name="allowFullScreen" value="true"&gt;
    &lt;param name="flashvars" value="&lt;parameters to flash&gt;"&gt;
   &lt;/object&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>In JS I am Trying</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>("#test").get(0).click();</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is triggering the onClick event only. But I want that this will click the flash upload button for me as well.</p>