Is there any way to simulate a click event in AS3? I'm trying this:
element.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_DOWN, true, false));
But click event isn't trigger it.
If you are listening for MouseEvent.CLICK
then dispatch MouseEvent.CLICK
. You are now dispatching MouseEvent.MOUSE_DOWN
element.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With