Skip to main content
Known Participant
August 12, 2020
Question

Drag and drop as3

  • August 12, 2020
  • 2 replies
  • 136 views

Hi Im knew to animate I keep getting this error message 1021: Duplicate function definition. could someone help me please this worked for me before but has stopped working now 

 

Hat.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_9);

function fl_ClickToDrag_9(event:MouseEvent):void
{
Hat.startDrag();
}

stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_9);

function fl_ReleaseToDrop_9(event:MouseEvent):void
{
Hat.stopDrag();
}

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Known Participant
    August 12, 2020

    It is an  air app if that helps 

    Known Participant
    August 12, 2020

    Nevermind all good fixed