I am looking to make matching game in flash
I found all tutorials on google are same in which if you drag items on correct match
it attched to it otherwise return back to it’s original position .
What I need that If you drag it on wrong match It also attached to it and
at the end when click on “show result” button at the bottom
It displays results like 8 are correct from 10
I have just simple code of drag drop
have 8 movieclip (m1 ,m2 , m3 … m8) and 8 target movie clip (t1, t2, t3… t8)
**m1.onPress = function()
{
this.startDrag();
};
m1.onRelease = function()
{
this.stopDrag();
if (this.hitTest(t1))
{
this._x=t1X;
this._y=t1Y;
score++;
}
else
{
this._x=m1X;
this._y=m1Y;
}
};**
then I tried made array where push mc in it
then trying swapping and other thing never found any solutions