Conflicto de Flash AS3 TouchEvent y MouseEvent

I have 2 controllers on my stage, one behaves like an analog controller (A) for left/right up/down etc, controlled with a TouchEvent. The firing controller (B) is bound to another TouchEvent.

The problem is TouchEvent seems to be much slower than using say MouseEvent.MOUSE_DOWN for controller (B) which results in a much faster firing mechanism. If I am using TouchEvent to control (A), and MouseEvent.MOUSE_DOWN on controller (B), (B) will not fire unless I release (A) meaning I cannot move and shoot at the same time which is frustrating, but I can use a MouseEvent for controller (A) and a TouchEvent for controller (B). Any ideas how I can stop the conflict?

preguntado el 08 de enero de 11 a las 19:01

1 Respuestas

Echa un vistazo a PressAndTapGestureEvent.

Respondido el 09 de enero de 11 a las 03:01

Worth a shot but seems to simulate a double click? For the time being I have introduced 2 firing buttons side by side so you can effectively tap with 2 fingers doubling the firing speed. - maderas creativas

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.