PDA

View Full Version : Drag and Drop Bug - Help!



jjaeck
January 6th, 2005, 12:03 PM
I have a drag and drop movie in which multiple movie clips are dropped into another area...the same area.

I've noticed that the movie clips respond to the mouse only if the movie clip is "on top" of other movie clips or graphics. My movie clips (graphics) that I'm dragging and dropping have a layer order corresponding to which was created on the stage first. In other words, the movie clip created second, will always appear on top of the first if dragged over the first. And the first will appear to go under the second if dragged through the second.

The problem is if a movie clip is dropped in the same place as another, and that other is on top of the first, the mouse no longer responds to drop and the movie clip becomes "stuck" to the curser.

Is there a way to make the current drag and drop movie clip dominant over others?

rmo518
January 31st, 2005, 03:16 PM
I don't know for sure if this will solve your problem or not, but you can give it a try.

You probably have something like this on your button:

on(release){
stopDrag();
}
Try adding this as well:

on(releaseOutside){
stopDrag();
}

draglord
February 2nd, 2005, 10:18 PM
hi, try using the function

swapDepths(yourDefinedLayerNo);

it will make the object which you drag apparent and on top of others.

Hope this helps.