AS2 - drag and drop
Hi. I'm trying to create a game where there's a word bank up top, and then three buckets on the bottom.
Here's what I want to have happen:
When the user clicks on the word (late or late2 in my code), it becomes draggable. When that dragged word goes over a bucket (attendance - a movie clip that changes color when the word is dropped on it), the top of the bucket (att_mc, con_mc and perf_mc) turns black. When it's not over a bucket, the top of the bucket goes back to normal.
When the user releases the mouse, if the word is over the correct bucket, the word disappears and the top of the bucket goes back to normal.
Then I want the user to be able to repeat this process with the remaining words.
Here's what's happening:
After the user drops a word on a correct bucket, the top remains black. Then when they choose another word, none of the bucket tops turn black, but the word still disappears when dropped.
I also want some sort of message to pop up once all the words are gone.
Here's my code for one of the 3 buckets: