/ Published in: ActionScript 3
If content is added dynamically inside a button object on runtime, the content seems to 'override' the double click mouse event of the container button. Solution is to set mouseChildren = false for the button object.
Expand |
Embed | Plain Text
button.buttonMode = true; button.mouseChildren = false; button.doubleClickEnabled = true; button.addEventListener( MouseEvent.DOUBLE_CLICK, doubleClickHandler ); // button content gets added/loaded...
You need to login to post a comment.
