Drag Collision

Drag Collision

Hello,
I'm new to Flex, and want to know a recommended way of approaching this problem:

Dragging and dropping circles from one component to another, but while they are in the over state of the destination component, applying an interactive collision detection of circles snapped to a horizontal y coordinate.

The already dropped circles can be picked up again and again to change that circles position colliding with the circles already there.

----------------------
| O O O O O |
----------------------

I tried a Tile list with an offset and manually creating the drag and drop abilities, but I'm failing when it comes to the collision.

What components would you use?
How do you implement this doDrag() in real-time (interactively)?

Add Comment

Put code snippets inside language tags:
[language] [/language]

Examples:
[javascript] [/javascript]
[actionscript] [/actionscript]
[csharp] [/csharp]

See here for supported languages.

Javascript must be enabled to submit anonymous comments - or you can login.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.