This content has been marked as final. Show 3 replies
The Flex2 documentation on labs.adobe.com includes a migration doc for issues like this.
Here's what it says regarding setCapture():
The setCapture() method has been removed. This method was used to block events going to other (nested or non-nested) components during drag operations and a few other interactions. However, in the nested situation, if one component called setCapture, its parents and children could not.
If you need this functionality, you should use the capture phase of the event model by calling stage.addEventListener("mouseXXX", mouseXXXHandler, true) where mouseXXX is the mouse event you wish to block. You can then emulate setCapture() by calling event.stopPropagation(); however, the Flex team does not recommend doing this because most components should ignore the event.
The releaseCapture() method has also been removed.
I was also using the setcapture method.
I need to receive the MOUSE_UP event when the mouse cursor is outside of the stage. But, no events occur outside of the stage, even after a call to stage.addEventListener.
Thank you in advance.