Skip to main content
UQg
Legend
September 23, 2014
Question

addEventListener in a group

  • September 23, 2014
  • 0 replies
  • 347 views

Hello,

i just switched to CC yesterday, and as expected i'm experiencing some scriptUI issues with my old scripts.

Basically, myGroup.addEventListener("click", myClickHandler, false) does handle clicks for images contained in the group, but not for iconbuttons, buttons, nor checkboxes.

Conversely, myWidget.onClick = function(){alert("!");} will work if myWidget is a button, iconbutton or checkbox, but not for an image...

Is that a new rule ?

In CS5.5/CS6 i was handling all those clicks in the same way, no diffference, with one handler attached to a group.

Xavier.

This topic has been closed for replies.