Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-05-2003, 01:37 PM   #1
akschinas
Senior Member
 
akschinas's Avatar
 
Join Date: Oct 2002
Location: New York
Posts: 197
Question game

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!
akschinas is offline   Reply With Quote
Old 01-05-2003, 02:08 PM   #2
yuan
Registered User
 
yuan's Avatar
 
Join Date: Nov 2002
Posts: 141
Default

u also can use hitTest like

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

on (press) {
stopDrag();
if(this.hitTest(drop1)){
.....
} else if(this.hitTest(drop2)){
....
}...
}
yuan is offline   Reply With Quote
Old 01-05-2003, 02:10 PM   #3
yuan
Registered User
 
yuan's Avatar
 
Join Date: Nov 2002
Posts: 141
Default

sorry... 1 is on press another 1 is on release...
yuan is offline   Reply With Quote
Old 01-05-2003, 04:12 PM   #4
akschinas
Senior Member
 
akschinas's Avatar
 
Join Date: Oct 2002
Location: New York
Posts: 197
Default

Thanks, I'll give it a try...
akschinas is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:21 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.