Hey Glen when you say "your mouse up is outside the stage" do you mean that the mouse up is occurring outside of the dragged object in which case the object catching the up event is the stage object. (Rest of your sentence seems to imply that.)

Susan, if you imagine your cursor moving faster than the drag object can keep up then what happens is the mouse up occurs outside of the object but since there is no built in mouseUpOutside event you are going to have to build your own. If you google "senocular as3 mouseupoutside" you should get some good hits on tutorials explaining how to use the stage object to catch these mouse up events.

hth,

Rob


On 24-Sep-08, at 2:55 PM, Glen Pike wrote:

Hi,

It could be because your mouse up is outside the stage - I have had problems with that - search for "MOUSE_LEAVE" or something similar - it maybe on the stage object.

  Glen

Lord, Susan, CTR, DSS wrote:
Hi there,

I am having problems with my event listener for my drag and drop.
Sometimes it detects the mouse up event and sometimes it doesn't and
won't let go of the object (stopDrag). Have any of you ever run into
this? If so, is there a fix?

Basically I have this coding...

function stopDragging(event:MouseEvent):void {
        trace("mouse up")
           // There is more function code I just didn't want to paste
it all in.
}

Triggered by:

for (i= 0; i < aButtons.length; i++) {
        aButtons[i].mouseChildren = false;
        aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN,
startDragging);
        aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging);

}

Any ideas?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to