Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I enable double click in action script?

I tried to do this :

panel.addEventListener(MouseEvent.DOUBLE_CLICK,showEditPopup);

but it is not working.

It works fine for

panel.addEventListener(MouseEvent.CLICK,showEditPopup);

So, I guess I have to enable double click first. Need help on it.

like image 799
veer7 Avatar asked Apr 30 '12 11:04

veer7


1 Answers

You have to enable double click for your panel before by doing this :

panel.doubleClickEnabled=true; 

And then you can do :

panel.addEventListener(MouseEvent.DOUBLE_CLICK,showEditPopup);
like image 188
ChapMic Avatar answered Sep 22 '22 19:09

ChapMic