Skip to main content
Known Participant
August 4, 2011
Question

How to make 2 CLICKS from 1 CLICK

  • August 4, 2011
  • 1 reply
  • 458 views

Okay, so the subject is weird but what I want to do is make an eventListener with a CLICK MouseEvent actually fire twice.

So what I want to happen is the user taps the screen once but 2 clicks actually fire.

I'm sure it must be an easy one but I just can't get my head around it.

Cheers

Mike

This topic has been closed for replies.

1 reply

Pahup
Adobe Employee
Adobe Employee
August 4, 2011

Would this workaround solve your problem.

public function mouseHandler(e:Event):void{

    // do job1.

    duplicateMouseHandler(e);

}

public function duplicateMouseHandler(evt:Event):void{

// do job1

}

-Pahup

Known Participant
August 4, 2011

Pahup, I no longer need to fire two clicks as you helped me in another one of my posts with the suggestion to use:

stage.focus = null

This fixed my problem... thanks again