2 Replies Latest reply on Oct 13, 2009 9:28 PM by rdiur

    Passing through a mouse click

    rdiur

      I have a canvas with backgroundAlpha=0 over some other components, so that I can use rollOver and rollOut to trigger some events. However, i can't get the mouse to work with the components underneath the tranparent canvas. Is there a way to pass the mouse click event on to the components underneath the canvas?

      thanks,

      jq

        • 1. Re: Passing through a mouse click
          Gregory Lafrance Level 6

          I think you can listen for the events on the container of the buttons etc. Then check event.target and respond appropriately.

           

          If this post answers your question or helps, please mark it as such.

          1 person found this helpful
          • 2. Re: Passing through a mouse click
            rdiur Level 1

            Thanks very much for your answer.

            In my case, I have a List which already has click actions assigned to its items. Basically, I want the list to disappear when the mouse is out of it, an reappear when the mouse is over it. For this purpose, I overlayed it with a transparent canvas, which responds to rollOver and rollOut. But then the list no longer responds to the mouse clicks. Is there a way to get the overlayed convas to pass the mouse click to the list so it responds normally again?

             

            jq