Dragging text to specified areas "Sticks"

Hi.

I’m VERY new to actionscripting and was wondering how to
specify areas as, for lack of better terms, “correct” and “incorrect”
areas. So that the user can drag text from the left ontop of the image,
to label the specific area. If the text belongs to that section of the image,
it will remain there “stick”.

Hope I’m explaining clearly.
I’ve included an example below.

Thanks in adcance for your time!

~Kashi