i have an object called sniper scope and a fire button.
when i point the crosshair of my sniper scope on the target and press the fire button i want it to simulate a mouseevent.click or a touchevent.TAP to play the movieclip of the target object.
how can i do this?
you can use this example, I’m using this in my accessibility implementation for the button in accDoDefaultAction method, it will work for you, you may wish to just use the click event (in my case I had to use all to properly update button with states), and feed with some details like mouseX. The master is the button in my case.
However after reading your query second time, I think you r problem may be that the sniper scope is hijacking the event if that is the case try:
best regards