Skip to main content
Known Participant
September 15, 2021
Question

Drag and drop

  • September 15, 2021
  • 2 replies
  • 205 views

How do i stop the other pieces when I have draged and doped this one, its a 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;}

    This topic has been closed for replies.

    2 replies

    Legend
    September 15, 2021

    This does not seem to be anything to do with PostScript.

    Yet, you've posted in the PostScript forum...

    If anything, it seems to relate to the now completely obsolete and blocked Flash Player...

    Known Participant
    September 15, 2021

    Yes sorry about that I relised after I posted this I dont know how to delete it 

    Known Participant
    September 15, 2021

    Pieces moving I ment to say