1 Reply Latest reply on May 26, 2007 6:34 PM by cshlin

    Newbie question about dragging

      Hi there,

      I'm trying to create an Apollo application where I can move buttons around a canvas. When I try the code below, my entire canvas/application ends up moving with the button:

      <mx:Canvas width="100%" height="100%">
      <mx:Button x="10" y="10" label="Test Button" mouseDown="startDrag()" mouseUp="stopDrag()"/> </mx:Canvas>

      I also tried the DragManager object, but it seems that it only detects the current button as a valid drop target. How can I reposition a button within a canvas?