Solved! I think.<br>Just doing "if dropped " function for every symbol separately... <br>sorry for spam. <br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Matvejs Terentjevs</b> <span dir="ltr"><<a href="mailto:matvejs.terentjevs@gmail.com">matvejs.terentjevs@gmail.com</a>></span><br>
Date: Wed, Apr 27, 2011 at 2:50 PM<br>Subject: Fwd: Drag and Drop - Multiple_Items and Mult_Targets<br>To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br><br><br>So basically, is it possible to return on it's place only object which was dragged right now... and not all others which are wrong for this target area? =) Sorry, I think my previous e-mail was a bit crazy )<div>
<div></div><div class="h5"><br><br><div class="gmail_quote">
---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Matvejs Terentjevs</b> <span dir="ltr"><<a href="mailto:matvejs.terentjevs@gmail.com" target="_blank">matvejs.terentjevs@gmail.com</a>></span><br>
Date: Wed, Apr 27, 2011 at 2:37 PM<br>
Subject: Drag and Drop - Multiple_Items and Mult_Targets<br>To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br><br><br>Dear all,<br><br>I am wondering if anyone tackled same problem? <br>
I have created several target areas, every with different script for wrong and right dragged items. In the target area dragItems property I typed symbols ( symbol1~leave~0 ) in one target area all right in another all wrong. <br>
<br>For right items I used the following script<br>if (myInt.objectDropped == symbol1, symbolx, ...) {<br>feedback.setText("I agree");<br>]<br><br><br>and for the wrong <br>if (myInt.objectDropped ==symbol2, ....) {<br>
f.setText("Try again");<br><br>symbol2.animate(x,y,10, 'linearTween');<br>.... <br>It works fine.... but the problem is - what is wrong for some target areas is right for others and when user arranged all right labels... and was mistaken in one... all right symbols will return on it's place because for this target area the symbols are wrong... <br>
Any ideas how I can separate different target areas with multiple draggable symbols? Or just not to animate wrong drag is easier?<br><br>Thank you<br>Matt.<br>
</div><br>
</div></div></div><br>