I found a way to kindof do this.
It's not perfect but I guess it's acceptable.
It only works as long as you don't move the mouse outside the container that
you want to restrict dragging to.
Once you mouse out of the container the proxy goes wherever the mouse goes
again.
Pretty weak.
I will post again if I find a better solution.
override protected function dragOverHandler(event:DragEvent):void{
super.dragOverHandler(event);
this.dragProxy = DragManager.mx_internal::dragProxy;
this.dragProxy.y = this.localToGlobal(new Point(this.x, this.y)).y;
/* if(DragAndDropRules.canDropHere(event.){
} */
}
--- In [email protected], "Archibald" <dek...@...> wrote:
>
> This is super easy using startDrag and seems to be stupid hard using the
> DragManager.
>
>
> Am I missing something?
>
>
> Why would this relatively common need not be addressed in the DragManager?
>
>
> I have seen like 20 people ask the same question with no answer.
>
>
> I am working on a linear editor using an HList and want to use the built in
> DragDrop support but it has to restrict to only drag horizontally.
>
>
>
> Thanks.
>
> --Kelly
>