0 Replies Latest reply on Jan 12, 2007 1:02 AM by Dzihan

    Stage mouse events

    Dzihan Level 1
      Hi everybody,

      i need a simple method to check if the mouse left the application and when i comes back in.
      i tried

      private function creationCompleteHandler(event:FlexEvent):void
      this.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
      this.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);

      but these events ALSO fire when i move the mouse onto a button that is added to the stage (without leaving the stage).
      another thing is how can i check a drag of a object to the outside of the swf?
      in AS2 there is a event "releaseOutside" that does the job, is there something similar in Flex2 aswell?

      What's this all about? I embedded this flash inside a C++ application and want to do some drag and drop interaction and communication of flash and c++ via flash.external.ExternalInterface.
      So i must know when something is currently dragged and then the mouse left the flash.
      When i release the mouse outside the flash inside the c++ app the mouseUp event does not fire of course, thats the other problem.

      Hope I made myself clear and someone can help.

      Best regards,