1 Reply Latest reply on Jul 30, 2015 10:25 AM by xbytor2

    No more events onClick() with image control? PS CC2015

    tokist24812219

      I noticed that the click event in the СС2015 is no longer triggered with the "image" elements.

      #target photoshop
      
      dlg = new Window("dialog")
      dlg.orientation = 'column';
      dlg.alignChildren = 'fill'
      dlg.alignment = 'fill'
      
      var myImg = dlg.add("image");
      myImg.image = File('photo.png')
      myImg.onClick = function(){alert('Click')}//and nothing happens...
      
      dlg.show()
      
      
      

       

      Is there a solution?

      Functionality of my script UI has been built on it. And the group is now opaque. not good