Skip to main content
Inspiring
January 3, 2007
Question

multiple _droptarget?

  • January 3, 2007
  • 1 reply
  • 344 views
Hi everyone

I am making a quiz with multiple drop targets, not where the answer is right or wrong and where one drop target matches one mc.

So I was wondering if _droptarget can be used for multiple drop targets or is hit test the way to go?

Thanks for your time ;)

regards
Michael
This topic has been closed for replies.

1 reply

January 3, 2007
Nope, there is no way to get multiple _droptargets, hitTest is the way to go.
mxcAuthor
Inspiring
January 3, 2007
Ok thanks for your reply ;)
mxcAuthor
Inspiring
January 4, 2007
Assignment complete and I did end up using _droptarget... so thought I would post here for future ref :)

Target = [thisStep.target_mc0,thisStep.target_mc1,thisStep.target_mc2,thisStep.target_mc3];

dragSq.onPress = function() {
this.startDrag();
origX = this._x;
origY = this._y;
};
dragSq.onRelease = function() {
this.stopDrag();
Drop = eval(this._droptarget);
for (a in Target) {
if (Drop == Target) {
this._x = Target
._x;
this._y = Target
._y;
Check = 1;
return;
}
if (!Check) {
this._x = origX;
this._y = origY;
}
Check = 0;
}
};
}