[Xerte] Fwd: Drag and Drop - Multiple_Items and Mult_Targets

Matvejs Terentjevs matvejs.terentjevs at gmail.com
Wed Apr 27 15:22:36 BST 2011


Solved! I think.
Just doing "if dropped " function for every symbol separately...
sorry for spam.

---------- Forwarded message ----------
From: Matvejs Terentjevs <matvejs.terentjevs at gmail.com>
Date: Wed, Apr 27, 2011 at 2:50 PM
Subject: Fwd: Drag and Drop - Multiple_Items and Mult_Targets
To: xerte at lists.nottingham.ac.uk


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 )


---------- Forwarded message ----------
From: Matvejs Terentjevs <matvejs.terentjevs at gmail.com>
Date: Wed, Apr 27, 2011 at 2:37 PM
Subject: Drag and Drop - Multiple_Items and Mult_Targets
To: xerte at lists.nottingham.ac.uk


Dear all,

I am wondering if anyone tackled same problem?
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.

For right items I used the following script
if (myInt.objectDropped == symbol1, symbolx, ...) {
feedback.setText("I agree");
]


and for the wrong
if (myInt.objectDropped ==symbol2, ....) {
f.setText("Try again");

symbol2.animate(x,y,10, 'linearTween');
....
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...
Any ideas how I can separate different target areas with multiple draggable
symbols? Or just not to animate wrong drag is easier?

Thank you
Matt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110427/aa122862/attachment.html>


More information about the Xerte mailing list