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

    Newbie question about dragging

    cshlin
      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>
      </mx:ApolloApplication>

      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?

      Thanks,

      Charles