views:

47

answers:

1

For eg you have three boxes: A, B and C. Then you also have 3 balls: A, B and C. You are supposed to drop ball A into box A and etc. If you drop the right ball into the right box, you get 1 point; else you get zero points and the ball returns to the original position.

I am supposed to use an image instead of A, B and C. How to detect if the 2 image matches? The image would be sth like a symbol in flash?

Do give me more info on how to start. I am actually quite a novice in flash/actionscript, having only been through some basic lessons.

A: 

I would start here FriendsOfEd Book

Download the source files (AS2) and look at Chapter06. Here the authors make use of a DropArea class and a DragDropManager class. I have rewritten my own DragDropManager and DropArea classes and have added an IDroppable interface as well. Reading that book (looking at those files) was how I first got my ideas though.

sberry2A