title: Simulate mouse click AS3
body: <p>I'm having trouble simulating a click call to a button(displayObject) thats generated via an API call( youtube as3 API). I have not seen any mention of security reasons as to why I can not simulate a click as long as something is registered with a click handler.</p>
  
  <p>Basically I checked to make sure the button made is listening to a mouse click event with:</p>
  
  <p><code>trace(generatedButton.hasEventListener(MouseEvent.CLICK))</code> which returns <code>true</code></p>
  
  <p>I proceed to than call this:</p>
  
  <p><code>generatedButton.dispatchEvent( new MouseEvent(MouseEvent.CLICK, true) );</code></p>
  
  <p>And nothing happens yet if I physically click the button it works. Is there some security measure that prevents something from being fake clicked unless its origin is strictly from the system mouse?</p>
  
  <p>I even set a timeout call on the click function and moved my cursor over the button and let it fire in case it was an issue of the mouse having to over the object but still nothing. I am kind of stumped at this point.</p>
  
  <p>Any help would be appreciated! </p>