[Xerte] Drag and Drop - Multiple_Items and Mult_Targets

Matvejs Terentjevs matvejs.terentjevs at gmail.com
Wed Apr 27 14:37:38 BST 2011


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/3e85f0ec/attachment.html>


More information about the Xerte mailing list