0 Replies Latest reply on Apr 28, 2008 6:20 PM by tshealy

    Drag Drop w/Line Graphics

    tshealy Level 1
      Hello,

      I am building a simple modeling application in Flex. I am looking for advice on the best way to allow the user to draw a straight line between two components. I'd like to show a 'preview' line (from the dragInitiator to the current mouse coordinates) during the drag-and-drop. I was thinking about using the dragProxy's graphics to draw a line from the dragInitiator to the current mouse coordinates, but I'm having trouble getting the MouseEvent.MOUSE_MOVE to fire on the dragProxy. Does this sounds like the correct approach?

      Thanks,
      -Tom

      PS: Here's a link I found that shows what I'm trying to do.... you can draw a line between any of the components: http://live.yworks.com/yfiles-flex/demo/dragAndDrop/DragNDropDemo.swf