PDA

View Full Version : game


akschinas
01-05-2003, 01:37 PM
Hi,

I have created a drag and drop game. One of the draggable movie clips has 3 possible drop targets.

I've done this:

on (press) {
if ((_root.DLU1._droptarget == "/drop1","/drop2","/drop3")

and this:

on (press) {
if ((_root.DLU1._droptarget == "/drop1") && (_root.DLU2._droptarget == "/drop2") && (_root.DLU3._droptarget == "/drop3")


Noneof these seem to work. Does anyone know why?

Thanks!

yuan
01-05-2003, 02:08 PM
u also can use hitTest like

on (press) {
startDrag("");
}

on (press) {
stopDrag();
if(this.hitTest(drop1)){
.....
} else if(this.hitTest(drop2)){
....
}...
}

yuan
01-05-2003, 02:10 PM
sorry... 1 is on press another 1 is on release...

akschinas
01-05-2003, 04:12 PM
Thanks, I'll give it a try...