> You should use the drag events for dragging, there is an example in
the help
> that shows how to work with dragging.
What do you mean by 'drag events' ? A drag operation has to be initiated
by a std mouse event, no ?
Anyway, changing 'mouseDown' to 'mouseMove' to initiate the drap
operation does the trick. Do not ask me why... maybe the mouse move do
not set any handler that would mess up with my other mouseUp event...
> <mx:Canvas
> mouseMove="drag(event)"
> mouseUp="click(event)"
> >
>
> <mx:Script>
> <![CDATA[
> [Bindable] public var color:uint = Constants.DEFAULT_COLOR;
>
> private function click(e:MouseEvent):void {
> // do my click things
> }
>
> private function drag(event:MouseEvent):void {
> var ds:DragSource = new DragSource();
> ds.addData(color, 'color');
> DragManager.doDrag(this,ds,event);
> }
> ]]>
> </mx:Script>
> </mx:Canvas>
{Maz}