Help Request - Wire Game

Hi guys, been floating about on Kirupa unregistered for a while and now I am stuck on one of my own projects at college and thought you guys may be able to help.

I’m making a fairly small puzzle game for college and one of the parts of it is a wire game, here is a pseudocode description of it.

1.You click on a coloured connector, when you do it draws a coloured wire (a simple line) to your mouse pointer like a piece of string.

2.You must take that coloured wire and click on the corresponding coloured connector at the other side.

3.If the connector is the right colour the line snaps to the connector and stays there.

4.If the connector is the wrong colour the line snaps back to the original connector and you must start again from step 1.

This would be required to work in ActionScript 2.0.

At the moment i have virtually no idea how to do this as this is probably quite ambitious for what is required for my course (i like to try and be fancy).

I have read the thread http://www.kirupa.com/forum/showthread.php?t=217838 about a similar request but as mine needs some interactivity with the connectors i was not sure if i should use the code listed in that thread.

Any help would be great, and if someone could throw together some working code that i could reuse that would be even better.

Regards,

Jaxn Fury