2 Replies Latest reply on Dec 29, 2009 11:31 AM by warlock24@gmail.com

    GUI - How to block execution of parent event handler

    warlock24@gmail.com

      Hello

       

      im learning flex, I've made my first application http://www.narutogis.appspot.com/ and have some problems with controls events.

       

      my app consists of canvas (as parent) + 4 buttons + image (svg), and now:

      • when i click one of 4 buttons their "on click" events are fired but after that this also executes 'click' event of the parent canvas. I do not want this feature can i somehow block event handlers of parent controls. SImple click on button should execute only this button 'click' event, nothing more
      • when i click on image it wont execute 'click event' of parent canvas (reverse situation to that at the top) Clicking on Image cntrol should execute Image 'click' event and also parent canvas 'click' event