Copy link to clipboard
Copied
I shorten the code considerably to make it easier to understand the problem I am having. the problem is it works the first time but then after that it lets me hit the object(abox) anywhere on the screen and it registers true
abox and bboxes are movie clips in an array
function fl_ReleaseToDrop(e:MouseEvent):void
{
this.stopDrag(); ///////////////////////this is abox
for (var k:Number=0; k<=abox.length-1;k++){
for (var f:Number=0; f<=bbox.length-1;f++){
if ((bbox
trace("hit")
}}}
there's nothing in the code you showed that would change between the nth time that code executed and the n+1st time.
Copy link to clipboard
Copied
there's nothing in the code you showed that would change between the nth time that code executed and the n+1st time.
Copy link to clipboard
Copied
yea messed up I had abox.x = bbox.x and abox.y = bbox.y
sorry
Copy link to clipboard
Copied
no problem.