hexMachina | Forword on click event from view to ViewHelper

31 views
Skip to first unread message

michael solomon

unread,
Jun 22, 2017, 4:18:09 PM6/22/17
to Haxe
Hey,

I saw this in the end of  article:

  1. The user triggers with his mouse a native HTMLEvent.CLICK on the image UI (in our case let’s assume he clicks on the image).
  2. We catch this natvie event in our GalleryView and forward this information as an abstract ImageViewMessage.CLICK (that we implemented, so it’s independent from the platform that we use).
  3. The GalleryViewHelper catch this message and forward as a business request GalleryMessage.LOAD_IMAGE to the privateDispatcher.
Anyone know how  I should to send ImageViewMessage.CLICK? and how catch it in my ViewHelper?

Thanks,
Michael
Reply all
Reply to author
Forward
0 new messages