I think this is a known problem... What about adding a stage rollout event,
and then there dispatch a mouse up if needed?

Give it a go (have not tested myself)

On Fri, Mar 13, 2009 at 5:45 PM, graham.t...@rocketmail.com <
graham.t...@rocketmail.com> wrote:

>
> In the following example, I've got a stage-level mouseUp listener. In the
> application window, I can click-drag off-window and, when I release, the
> mouseUp event will fire.
>
> However, if I start my click-drag on the label and release off-screen, I do
> _not_ get the mouseUp event.
>
> (I think setting mouseChildren=false on thetestContainer resolves the issue
> for this test, but it's not practical for my application.)
>
> Anyone have any ideas?
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute"
> applicationComplete="onApplicationComplete(event)">
>
> <mx:Script>
> <![CDATA[
> import mx.events.FlexEvent;
>
> private function onApplicationComplete(e:FlexEvent):void
> {
> stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
> }
>
> private function onMouseUp(e:MouseEvent):void
> {
> trace ("onMouseUp fired");
> }
> ]]>
> </mx:Script>
>
> <mx:Canvas id="testContainer" width="400" height="100"
> backgroundColor="#00ff00">
> <mx:Label text="Click-drag from _label_ to off-window. Release. No
> mouseUp."/>
> </mx:Canvas>
> </mx:Application>
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,

Reply via email to