I am working on this drag and drop game where you have two columns. You have to drag each term to the correct column and then press “submit” to see if you got them all right.
I am having trouble with the script on the submit button:
on (press) {
if (((getProperty("/a2", _droptarget) eq ("/b1")) or
((getProperty("/a2", _droptarget) eq ("/b2")) or
((getProperty("/a2", _droptarget) eq ("/b3")) or
((getProperty("/a2", _droptarget) eq ("/b4")) and
((getProperty("/a4", _droptarget) eq ("/b1")) or
((getProperty("/a4", _droptarget) eq ("/b2")) or
((getProperty("/a4", _droptarget) eq ("/b3")) or
((getProperty("/a4", _droptarget) eq ("/b4")) and
((getProperty("/a5", _droptarget) eq ("/b1")) or
((getProperty("/a5", _droptarget) eq ("/b2")) or
((getProperty("/a5", _droptarget) eq ("/b3")) or
((getProperty("/a5", _droptarget) eq ("/b4")) and
((getProperty("/a6", _droptarget) eq ("/b1")) or
((getProperty("/a6", _droptarget) eq ("/b2")) or
((getProperty("/a6", _droptarget) eq ("/b3")) or
((getProperty("/a6", _droptarget) eq ("/b4")))){
tellTarget("/sound"){ gotoAndPlay(2); }
}
else if
I keep getting a syntac error. Any suggestions or help on how this could be fixed?
Thank you