1 Reply Latest reply on Nov 16, 2009 1:36 PM by Flex harUI

    Customize Hittable Area on UIComponents Help

    viatropos Level 1

      Hey,

       

      I would like to create a Button with a DropShadow, and animate its Label off the visible bounds of the button.  I'm doing this via the new Spark Skins.

       

      The problem is, I'm getting MouseEvents when I rollOver the DropShadow, and, if the Label.x == button.width*2, then if I roll off to the right, it's still not registering a rollOut event for the button, even though the Label is outside the buttons bounds (behind a mask).

       

      How do I say, "only let the button register mouse events within this area"?

       

      Thanks so much for your help, I never really have gotten over this issue.

       

      Here's the code for the skin:

       

      http://stackoverflow.com/questions/1741172/restrict-mouseevents-to-mask-in-flex-skin