1 Reply Latest reply on Mar 19, 2007 9:50 AM by darkfrog26

    MouseEvent getting Flex Component?

    darkfrog26
      I'm trying to always have a reference to the Flex component the mouse is over at any given time. However, what ends up happening is I'm getting the references to the underlying Flash components that make up the component instead of the actual Flex component. Is there any way to find the Flex component that the mouse is over?

      Here's what I'm doing:
      UIComponent(Application.application).addEventListener(MouseEvent.MOUSE_OVER, setMouseTarget);

      private function setMouseTarget(event:MouseEvent:void {
      mouseTarget = event.target;
      }

      For example if my mouse is over a Label I get a UITextField.