Skip to main content
Known Participant
August 12, 2020
Question

Drag and drop as3

  • August 12, 2020
  • 1 reply
  • 131 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 has been closed for replies.

    1 reply

    Known Participant
    August 12, 2020

    It is an  air app if that helps 

    Known Participant
    August 12, 2020

    Nevermind all good fixed