Drag and drop using drag manager

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Drag and drop using drag manager

    Can someone help? I am dealing with drag and drop and want to be able to drop
    an item in a VHorizontal box. If I set a background pic then I can drop the
    item onto that but why does it require a target?! Surely I can capture the
    event without this.

    mmahuika Guest

  2. Similar Questions and Discussions

    1. Drag and Drop from VB6 onto a pdf ?
      I'm trying to right an app using the Acrobat 7.0.5 SDK. I want to be able to drag items from a list box, combo box, grid, etc, and drop them into a...
    2. Drag and Drop help please!!!
      Hi, I'm sure the answer to this is simple, so if you know flash, please read... : ) We're trying to create a drag and drop interactive flash...
    3. ASP.NET Drag Drop
      Hi, I need to develop a ASP.NET web application having two tree controls.I should be able to drag tree nodes from one tree to another.How can i...
    4. ASP.NET and Drag & Drop
      Is it possible to drag and drop controls in an aspx page at runtime ? Meaning i have developed a ASP.NET web form, the web form is now downloaded...
    5. Less Drag-n-Drop in OSX?
      Call me a bonehead if there was an announcement about this a couple years ago, but does it seem like very few OSX apps support drag-n-drop? I...
  3. #2

    Default Re: Drag and drop using drag manager

    Post a small sample app, I'll take a look.

    Obviously, the drop needs a target, but you should be able to use the VBox as the parent.

    Tracy
    ntsiii Guest

  4. #3

    Default Re: Drag and drop using drag manager

    Thought I had replied but I can't see it so here goes again...

    The main problem is that the user can move custom components between
    boxes(VHorizontalBoxes). If they move all components out of one box then they
    should be allowed to move the components back into the empty one. But the drag
    and drop code was within the custom component rather than the box. To get
    around this I managed to 'fake' a target by setting the background colour of
    the VHorizontalBox. To do this I added functions to move the component then
    added the following code to the boxes.

    dragEnter="doDragEnter(event)" dragDrop="doDragDrop(event)"
    backgroundColor="#7D8FA8"

    If you can think of a better way of doing this please let me know :)

    mmahuika Guest

  5. #4

    Default Re: Drag and drop using drag manager

    Ahh, actually that sounds like a reasonable approach.
    Tracy
    ntsiii Guest

  6. #5

    Default Re: Drag and drop using drag manager

    Thanks Tracy I'm glad you agree. All I need to do now is move all the drag and drop events out of the custom component so it is all in the one place... :(
    mmahuika Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139