Flex 3: Problem Dragging a Component
Hi,
I created an MXML component that I want to be able to move around.
I added a button and I capture the mouse down & mouse up events:
protected function btnMove_mouseDownHandler(event:MouseEvent):void
{
startDrag(false, new Rectangle(0, 0, parent.width - width, parent.height - height));
event.stopImmediatePropagation();
}
protected function btnMove_mouseUpHandler(event:MouseEvent):void
{
stopDrag();
event.stopImmediatePropagation();
}
However, after the mouse is released, the component jumps back to the original location.
I can't get it to stay at the (x,y) it was released! ![]()
Any ideas???
Thanks!
