title: Clicking a .swf button on a webpage in C# windows forms application webbrowser
body: <p>I am trying to click on a shockwave flash button in my C# windows forms webbrowser. Currently in my windows forms application, I sign into the website and go the webpage where the button is. I want to then click on my windows form button, and have it click the flash button 5 times with about 15 seconds pause in between clicks. As of now, I have nothing, but a lot of hours of googling and getting nowhere. From what I can tell and have played around with, the mechanics is all wrapped up in the button_2.swf and I have tried to call the javascripts on the website but nothing happens. In the swf, you need to 'rollOver' the flash button and then 'press' to run 'gotoandplay(11)' and at some point there is some xml code running at the end. Yes there is the no flash script in the html code, but it doesnt work properly, so that is out of the question. The html code for the button is as follows:</p>
  
  <pre><code>&lt;div id='button'&gt;
      &lt;script type="text/javascript"&gt;
          function disableButton() {
              btn = document.getElementById('luckybutton');
              btn.style.display = 'none';
              btn_clicked = document.getElementById('luckybutton_clicked');
              btn.style.display = 'block';
          }
      &lt;/script&gt;
      &lt;div id='luckybutton' style="z-index:1"&gt;
          &lt;script language="javascript"&gt;
              AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width', '373','height', '373','src', '/images/buttons/','quality', 'high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','align', 'middle','play', 'false','loop','true','scale','showall','wmode','transparent','devicefont','false','id', '','bgcolor', '#ddeef6','name', '','menu', 'true','allowFullScreen', 'false','allowScriptAccess','sameDomain','movie', '/images/buttons/button_2','salign', ''); //end AC code
          &lt;/script&gt;
          &lt;noscript&gt;
              &lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="373" height="373" id="" align="middle" style="z-index:1"&gt;
                  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;param name="allowFullScreen" value="false" /&gt;
                  &lt;param name="movie" value="/images/buttons/button_2.swf" /&gt;
                  &lt;param name="quality" value="high" /&gt;&lt;param name="bgcolor" value="#ddeef6" /&gt;
                  &lt;embed src="/images/buttons/.swf" quality="high" bgcolor="#ddeef6" width="373" height="373" name="" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;
                  &lt;!-- no_flash content --&gt;
                      &lt;a href="/button/push_the_button" data-method="post" onmousedown="disableButton();return false;" rel="nofollow"&gt;&lt;img alt="Luckybutton" src="/images/slb/luckybutton.jpg?1286570555" /&gt;&lt;/a&gt;
                  &lt;!-- end no_flash content --&gt;
              &lt;/object&gt;
          &lt;/noscript&gt;
      &lt;/div&gt;
      &lt;div id="luckybutton_clicked" style="display:none"&gt;
          &lt;img alt="Luckybutton" src="/images/slb/luckybutton.jpg?1286570555" /&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>