Sorry I misenterpreted, I thought you were asking if you thought I should be using that,
I dont actually have the check code,
I think thats why it's not working...
Do you think you could post it?
Right now I just have these hittest checks: Here is the check for one
one_mc.onPress = function()
{
one_mc.startDrag();
};
one_mc.onRelease = function()
{
if(one_mc._droptarget=="/onedef_mc")
{
// align Sprite3
one_mc._x = onedef_mc._x + (onedef_mc._width-one_mc._width)/2;
one_mc._y = onedef_mc._y + (onedef_mc._height-one_mc._height)/2;
one_mc.gotoAndPlay("success");
} else {
(one_mc._droptarget=="/onedef_mc")
{
// align Sprite3
one_mc._x = onewrong_mc._x + (onewrong_mc._width-one_mc._width)/2;
one_mc._y = onewrong_mc._y + (onewrong_mc._height-one_mc._height)/2;
onedef_mc.gotoAndStop("fail");
};
};
one_mc.stopDrag();
};
Is that what you mean? Sorry it's such a mess
if you don't have code to check if all the movieclips have been dropped on their targets, there's no way that code can work.
use something like:
one_mc.onPress = function() { one_mc.startDrag(); }; one_mc.onRelease = function() { checkF(); if(one_mc._droptarget=="/onedef_mc") { // align Sprite3 one_mc._x = onedef_mc._x + (onedef_mc._width-one_mc._width)/2; one_mc._y = onedef_mc._y + (onedef_mc._height-one_mc._height)/2; one_mc.gotoAndPlay("success"); // the code in italics doesn't look right } else { (one_mc._droptarget=="/onedef_mc") { // align Sprite3 one_mc._x = onewrong_mc._x + (onewrong_mc._width-one_mc._width)/2; one_mc._y = onewrong_mc._y + (onewrong_mc._height-one_mc._height)/2; onedef_mc.gotoAndStop("fail"); };
}; one_mc.stopDrag(); }; function checkF(){ |
if(one_mc._droptarget=="/onedef_mc" && two_mc._droptarget=="/twodef_mc" && three_mc._droptarget=="/threedef_mc" &&
four_mc._droptarget=="/fourdef_mc" && five_mc._droptarget=="/fivedef_mc" && six_mc._droptarget=="/sixdef_mc" &&
cave_mc._droptarget=="/cavedef_mc" && eight_mc._droptarget=="/eightdef_mc" && nine_mc._droptarget=="/ninedef_mc" &&
ten_mc._droptarget=="/tendef_mc" && eleven_mc._droptarget=="/elevendef_mc" && twelve_mc._droptarget=="/twelvedef_mc"){
gotoAndPlay(_currentframe+1);
}
}