1 Reply Latest reply on Nov 17, 2008 6:14 AM by Newsgroup_User

    Constraining drag movements

    angie_mc
      I've extended Flex TabBar and have added drag and drop functionality. I want to restrict the dragging to within the TabBar, either by not letting the mouse move outside the TabBar or when the mouse moves outside the drag icon stays within the bar. Eg, if (y < 0) y = 0.. Is this possible in Flex? The only examples I can find are for Flash using startDrag. I've tried handling the mouse move event, but it doesn't seem to fire if the mouse is moved slowly!

      Thanks.
        • 1. Re: Constraining drag movements
          Level 7

          "angie_mc" <webforumsuser@macromedia.com> wrote in message
          news:gfrka5$5s8$1@forums.macromedia.com...
          > I've extended Flex TabBar and have added drag and drop functionality. I
          > want to
          > restrict the dragging to within the TabBar, either by not letting the
          > mouse
          > move outside the TabBar or when the mouse moves outside the drag icon
          > stays
          > within the bar. Eg, if (y < 0) y = 0.. Is this possible in Flex? The only
          > examples I can find are for Flash using startDrag. I've tried handling the
          > mouse move event, but it doesn't seem to fire if the mouse is moved
          > slowly!

          supertabbar
          http://code.google.com/p/flexlib/wiki/ComponentList