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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to