Copy link to clipboard
Copied
How can I stop the other pieces moving when I drag and drop a piece its a jig saw puzzle
p1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_24);
function fl_ClickToDrag_24(event:MouseEvent):void
{
p1.startDrag();
}
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_24);
function fl_ReleaseToDrop_24(event:MouseEvent):void
{
p1.stopDrag();
if(tar1.hitTestObject(p1.hit1))
p1.x=205.2;
p1.y=254.8;}
Hi.
I'm not sure if I understand, but maybe what you want is to set the property mouseEnabled to false in your pieces.
Please let us know.
Regards,
JC
Copy link to clipboard
Copied
Hi.
I'm not sure if I understand, but maybe what you want is to set the property mouseEnabled to false in your pieces.
Please let us know.
Regards,
JC
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi.
I still don't get it.
Do you mind sharing a video of the issue you're facing?
Regards,
JC
Copy link to clipboard
Copied
Hi again joao its all good fixed it I played around with the code a bit and its doing the right thing now 🙂
Copy link to clipboard
Copied
Great job JoãoCésar.
You are a code master!