AS2 - objects into empty boxes
I have a series of 4 objects (object1, object2, etc) and 4 empty boxes (box1, box2, etc). What I want to happen is this:
1) Click the object and all empty boxes light up
2) Click an illuminated box and the object moves to it and it along with the now occupied box can no longer be acted upon
And repeat the process until all empty boxes are occupied in a 1:1 ratio (that is, 1 object per box and no objects can overlap).
I have honestly no clue where to begin coding this idea. Can anyone help?